From 1bd4b4b40ba7b28548974f97ccfa41d566fb7422 Mon Sep 17 00:00:00 2001 From: Xiong Neng Date: Sat, 15 Sep 2018 16:00:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90springboot-swagger2=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 18 +----------------- springboot-swagger2/README.md | 2 ++ springboot-swagger2/pom.xml | 6 +++--- .../src/main/resources/application.yml | 18 +----------------- .../com/xncoding/jwt/ApplicationTests.java | 15 --------------- .../com/xncoding/jwt/Swagger2MarkupTest.java | 2 +- 6 files changed, 8 insertions(+), 53 deletions(-) delete mode 100644 springboot-swagger2/src/test/java/com/xncoding/jwt/ApplicationTests.java diff --git a/springboot-socketio/src/main/resources/application.yml b/springboot-socketio/src/main/resources/application.yml index 63c5506..64c456f 100644 --- a/springboot-socketio/src/main/resources/application.yml +++ b/springboot-socketio/src/main/resources/application.yml @@ -26,20 +26,4 @@ logging: ROOT: INFO com: xncoding: DEBUG - file: E:/logs/app.log - ---- - -##################################################################### -######################## 测试环境profile ########################## -##################################################################### - -spring: - profiles: test - -logging: - level: - ROOT: INFO - com: - xncoding: DEBUG - file: /var/logs/app.log + file: D:/logs/app.log diff --git a/springboot-swagger2/README.md b/springboot-swagger2/README.md index d012d5a..6b81346 100644 --- a/springboot-swagger2/README.md +++ b/springboot-swagger2/README.md @@ -3,6 +3,8 @@ 集成Swagger2自动生成API文档,同时可转换成PDF格式 +启动应用后访问:http://localhost:9095/swagger-ui.html + ## 许可证 Copyright (c) 2018 Xiong Neng diff --git a/springboot-swagger2/pom.xml b/springboot-swagger2/pom.xml index 895be86..991e080 100644 --- a/springboot-swagger2/pom.xml +++ b/springboot-swagger2/pom.xml @@ -72,12 +72,12 @@ io.springfox springfox-swagger2 - 2.7.0 + 2.8.0 - com.xncoding + io.springfox springfox-swagger-ui - 2.7.0 + 2.8.0 org.pegdown diff --git a/springboot-swagger2/src/main/resources/application.yml b/springboot-swagger2/src/main/resources/application.yml index 4dea183..05801d7 100644 --- a/springboot-swagger2/src/main/resources/application.yml +++ b/springboot-swagger2/src/main/resources/application.yml @@ -27,20 +27,4 @@ logging: ROOT: INFO com: xncoding: DEBUG - file: E:/logs/app-api.log - ---- - -##################################################################### -######################## 测试环境profile ########################## -##################################################################### - -spring: - profiles: test - -logging: - level: - ROOT: INFO - com: - xncoding: DEBUG - file: /var/logs/app-api.log + file: D:/logs/app-api.log diff --git a/springboot-swagger2/src/test/java/com/xncoding/jwt/ApplicationTests.java b/springboot-swagger2/src/test/java/com/xncoding/jwt/ApplicationTests.java deleted file mode 100644 index 7a7d2b8..0000000 --- a/springboot-swagger2/src/test/java/com/xncoding/jwt/ApplicationTests.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.xncoding.jwt; - -import org.junit.runner.RunWith; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; - -/** - * 测试密码加密 - */ - -@RunWith(SpringRunner.class) -@SpringBootTest -public class ApplicationTests { - -} diff --git a/springboot-swagger2/src/test/java/com/xncoding/jwt/Swagger2MarkupTest.java b/springboot-swagger2/src/test/java/com/xncoding/jwt/Swagger2MarkupTest.java index 16fdfca..a25c6aa 100644 --- a/springboot-swagger2/src/test/java/com/xncoding/jwt/Swagger2MarkupTest.java +++ b/springboot-swagger2/src/test/java/com/xncoding/jwt/Swagger2MarkupTest.java @@ -51,7 +51,7 @@ public class Swagger2MarkupTest { * * 执行完成后生成PDF文件方法: * - * 首先在`build/swagger.adoc`的顶部加入: + * 首先在`swagger/swagger.adoc`的顶部加入: ``` :toclevels: 3 :numbered: