File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
src/main/java/com/didispace/swagger Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 77
88/**
99 * @author 翟永超
10- * @create 2017/8/7.
11- * @ blog http://blog.didispace.com
10+ * Create date : 2017/8/7.
11+ * My blog: http://blog.didispace.com
1212 */
1313@ Target ({ElementType .TYPE })
1414@ Retention (RetentionPolicy .RUNTIME )
Original file line number Diff line number Diff line change 1717
1818/**
1919 * @author 翟永超
20- * @create 2017/8/7.
21- * @ blog http://blog.didispace.com
20+ * Create date : 2017/8/7.
21+ * My blog: http://blog.didispace.com
2222 */
2323@ Configuration
2424public class SwaggerAutoConfiguration {
@@ -45,9 +45,9 @@ public Docket createRestApi(SwaggerProperties swaggerProperties) {
4545 .build ();
4646
4747 // 当没有配置任何path的时候,解析/**
48- if (swaggerProperties .getBasePath ().isEmpty ()) {
49- swaggerProperties .getBasePath ().add ("/**" );
50- }
48+ // if(swaggerProperties.getBasePath().isEmpty()) {
49+ // swaggerProperties.getBasePath().add("/**");
50+ // }
5151
5252 List <Predicate <String >> basePath = new ArrayList ();
5353 for (String path : swaggerProperties .getBasePath ()) {
Original file line number Diff line number Diff line change 99
1010/**
1111 * @author 翟永超
12- * @create 2017/8/7.
13- * @ blog http://blog.didispace.com
12+ * Create date : 2017/8/7.
13+ * My blog: http://blog.didispace.com
1414 */
1515@ Data
1616@ ConfigurationProperties ("swagger" )
You can’t perform that action at this time.
0 commit comments