deason 7 жил өмнө
parent
commit
554f8375b6

+ 0 - 10
pom.xml

@@ -65,16 +65,6 @@
             <artifactId>springfox-swagger2</artifactId>
             <version>2.9.2</version>
         </dependency>
-        <dependency>
-            <groupId>com.github.xiaoymin</groupId>
-            <artifactId>swagger-bootstrap-ui</artifactId>
-            <version>1.7.5</version>
-        </dependency>
-        <!--<dependency>
-            <groupId>io.springfox</groupId>
-            <artifactId>springfox-swagger-ui</artifactId>
-            <version>2.9.2</version>
-        </dependency>-->
     </dependencies>
 
     <build>

+ 1 - 0
src/main/java/cn/com/qmth/examcloud/app/SwaggerConfig.java

@@ -41,6 +41,7 @@ public class SwaggerConfig {
         token.name("token").modelRef(new ModelRef("String")).parameterType("header").build();
         parameters.add(token.build());
         return new Docket(DocumentationType.SWAGGER_2)
+                .groupName("Version 1.0")
                 .apiInfo(buildApiInfo())
                 .useDefaultResponseMessages(false)
                 .select()

+ 3 - 1
src/main/resources/templates/index.ftl

@@ -8,6 +8,8 @@
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
 </head>
 <body>
-Welcome!
+<script>
+    window.location.href = '${base}/doc.html';
+</script>
 </body>
 </html>