File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/main/java/com/didispace/swagger Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 66
77 <groupId >com.didispace</groupId >
88 <artifactId >spring-boot-starter-swagger</artifactId >
9- <version >1.2 .0.RELEASE </version >
9+ <version >1.3 .0.SNAPSHOT </version >
1010
1111 <name >spring-boot-starter-swagger</name >
1212 <url >https://github.com/dyc87112/spring-boot-starter-swagger</url >
6868 <artifactId >springfox-swagger2</artifactId >
6969 <version >${version.swagger} </version >
7070 </dependency >
71+ <dependency >
72+ <groupId >io.springfox</groupId >
73+ <artifactId >springfox-bean-validators</artifactId >
74+ <version >${version.swagger} </version >
75+ </dependency >
7176 <dependency >
7277 <groupId >org.projectlombok</groupId >
7378 <artifactId >lombok</artifactId >
Original file line number Diff line number Diff line change 11package com .didispace .swagger ;
22
33import org .springframework .context .annotation .Import ;
4+ import springfox .bean .validators .configuration .BeanValidatorPluginsConfiguration ;
45import springfox .documentation .swagger2 .annotations .EnableSwagger2 ;
56
67import java .lang .annotation .*;
1516@ Documented
1617@ Inherited
1718@ EnableSwagger2
18- @ Import (SwaggerAutoConfiguration .class )
19+ @ Import ({ SwaggerAutoConfiguration .class , BeanValidatorPluginsConfiguration . class } )
1920public @interface EnableSwagger2Doc {
2021
2122
You can’t perform that action at this time.
0 commit comments