完成springboot-swagger2升级重构
This commit is contained in:
parent
e656d466c2
commit
1bd4b4b40b
@ -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
|
||||
|
@ -3,6 +3,8 @@
|
||||
|
||||
集成Swagger2自动生成API文档,同时可转换成PDF格式
|
||||
|
||||
启动应用后访问:http://localhost:9095/swagger-ui.html
|
||||
|
||||
## 许可证
|
||||
|
||||
Copyright (c) 2018 Xiong Neng
|
||||
|
@ -72,12 +72,12 @@
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger2</artifactId>
|
||||
<version>2.7.0</version>
|
||||
<version>2.8.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.xncoding</groupId>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger-ui</artifactId>
|
||||
<version>2.7.0</version>
|
||||
<version>2.8.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.pegdown</groupId>
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
||||
}
|
@ -51,7 +51,7 @@ public class Swagger2MarkupTest {
|
||||
*
|
||||
* 执行完成后生成PDF文件方法:
|
||||
*
|
||||
* 首先在`build/swagger.adoc`的顶部加入:
|
||||
* 首先在`swagger/swagger.adoc`的顶部加入:
|
||||
```
|
||||
:toclevels: 3
|
||||
:numbered:
|
||||
|
Loading…
Reference in New Issue
Block a user