File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
src/main/kotlin/com/example/config Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ dependencies {
59
59
60
60
compile " io.springfox:springfox-swagger2:${ swaggerVersion} "
61
61
compile " io.springfox:springfox-swagger-ui:${ swaggerVersion} "
62
+ compile " io.springfox:springfox-bean-validators:${ swaggerVersion} "
62
63
63
64
testCompile ' org.springframework.boot:spring-boot-starter-test'
64
65
}
Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ import org.elasticsearch.node.NodeBuilder.nodeBuilder
13
13
import org.springframework.beans.factory.annotation.Value
14
14
import org.springframework.context.annotation.Bean
15
15
import org.springframework.context.annotation.Configuration
16
+ import org.springframework.context.annotation.Import
16
17
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate
17
18
import org.springframework.data.elasticsearch.core.EntityMapper
18
19
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories
19
20
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder
21
+ import springfox.bean.validators.configuration.BeanValidatorPluginsConfiguration
20
22
import springfox.documentation.builders.ApiInfoBuilder
21
23
import springfox.documentation.builders.PathSelectors
22
24
import springfox.documentation.builders.RequestHandlerSelectors
@@ -34,6 +36,7 @@ class JacksonConfig {
34
36
}
35
37
36
38
@Configuration
39
+ @Import(BeanValidatorPluginsConfiguration ::class )
37
40
@EnableSwagger2
38
41
class SwaggerConfig {
39
42
@Bean
You can’t perform that action at this time.
0 commit comments