File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
spring-json-api-starter/src
main/kotlin/io/hndrs/api/autoconfigure
test/kotlin/io/hndrs/api/autoconfigure
spring-json-api/src/main/kotlin/io/hndrs/api/response Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
package io.hndrs.api.autoconfigure
2
2
3
3
import io.hndrs.api.exception.ExceptionHandler
4
- import io.hndrs.api.response.ResponseAdvise
4
+ import io.hndrs.api.response.ResponseAdvice
5
5
import org.springframework.context.annotation.Bean
6
6
import org.springframework.context.annotation.Configuration
7
7
@@ -14,7 +14,7 @@ open class JsonApiAutoConfiguration {
14
14
}
15
15
16
16
@Bean
17
- open fun responseAdvice (): ResponseAdvise {
18
- return ResponseAdvise ()
17
+ open fun responseAdvice (): ResponseAdvice {
18
+ return ResponseAdvice ()
19
19
}
20
20
}
Original file line number Diff line number Diff line change 1
1
package io.hndrs.api.autoconfigure
2
2
3
3
import io.hndrs.api.exception.ExceptionHandler
4
- import io.hndrs.api.response.ResponseAdvise
4
+ import io.hndrs.api.response.ResponseAdvice
5
5
import org.junit.jupiter.api.Assertions
6
6
import org.junit.jupiter.api.DisplayName
7
7
import org.junit.jupiter.api.Test
@@ -18,7 +18,7 @@ internal class JsonApiAutoConfigurationTest {
18
18
AutoConfigurations .of(JsonApiAutoConfiguration ::class .java)
19
19
).run {
20
20
Assertions .assertNotNull(it.getBean(ExceptionHandler ::class .java))
21
- Assertions .assertNotNull(it.getBean(ResponseAdvise ::class .java))
21
+ Assertions .assertNotNull(it.getBean(ResponseAdvice ::class .java))
22
22
}
23
23
}
24
24
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.ControllerAdvice
10
10
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice
11
11
12
12
@ControllerAdvice
13
- class ResponseAdvise : ResponseBodyAdvice <Any > {
13
+ class ResponseAdvice : ResponseBodyAdvice <Any > {
14
14
15
15
override fun beforeBodyWrite (
16
16
value : Any? ,
You can’t perform that action at this time.
0 commit comments