Forráskód Böngészése

upgrade swagger to v2.10.5

deason 4 éve
szülő
commit
16b3f0d8cb

+ 0 - 4
examcloud-core-print-common/pom.xml

@@ -78,10 +78,6 @@
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
         </dependency>
-        <dependency>
-            <groupId>io.springfox</groupId>
-            <artifactId>springfox-swagger2</artifactId>
-        </dependency>
     </dependencies>
 
 </project>

+ 2 - 3
examcloud-core-print-starter/src/main/java/cn/com/qmth/examcloud/core/print/config/SwaggerConfig.java

@@ -16,15 +16,14 @@ import springfox.documentation.builders.RequestHandlerSelectors;
 import springfox.documentation.service.ApiInfo;
 import springfox.documentation.spi.DocumentationType;
 import springfox.documentation.spring.web.plugins.Docket;
-import springfox.documentation.swagger2.annotations.EnableSwagger2;
+import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
 
 /**
  * @author: QMTH
  * @since: 2018/10/17
  */
 @Configuration
-@EnableSwagger2
-//@EnableSwaggerBootstrapUI
+@EnableSwagger2WebMvc
 public class SwaggerConfig {
 
     @Bean