修改了swagger的依赖包
This commit is contained in:
@ -39,6 +39,11 @@
|
|||||||
<artifactId>unifast-security</artifactId>
|
<artifactId>unifast-security</artifactId>
|
||||||
<version>${unifast.version}</version>
|
<version>${unifast.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>cn.chinaunicom.sdsi</groupId>
|
||||||
|
<artifactId>unifast-core</artifactId>
|
||||||
|
<version>${unifast.version}</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.chinaunicom.sdsi</groupId>
|
<groupId>cn.chinaunicom.sdsi</groupId>
|
||||||
<artifactId>unifast-storage</artifactId>
|
<artifactId>unifast-storage</artifactId>
|
||||||
@ -123,6 +128,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.google.guava</groupId>
|
<groupId>com.google.guava</groupId>
|
||||||
<artifactId>guava</artifactId>
|
<artifactId>guava</artifactId>
|
||||||
|
<version>${guava.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.shardingsphere</groupId>
|
<groupId>org.apache.shardingsphere</groupId>
|
||||||
|
23
mall-ebtp-cloud-swagger-starter/README.md
Normal file
23
mall-ebtp-cloud-swagger-starter/README.md
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## MAll-EBTP-Swagger-Cloud-Starter
|
||||||
|
API 文档生成工具
|
||||||
|
</br></br></br>
|
||||||
|
|
||||||
|
### 相关配置文件:
|
||||||
|
unifast.swagger.basePackage=基础包
|
||||||
|
unifast.swagger.title=标题
|
||||||
|
unifast.swagger.contactName=联系人
|
||||||
|
unifast.swagger.contactUrl=网址
|
||||||
|
unifast.swagger.contactEmail=联系人邮箱
|
||||||
|
unifast.swagger.version=应用版本号
|
||||||
|
unifast.swagger.description=描述信息
|
||||||
|
|
||||||
|
### 模块引入方式
|
||||||
|
```
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.chinaunicom.ebtp</groupId>
|
||||||
|
<artifactId>mall-ebtp-cloud-swagger-starter</artifactId>
|
||||||
|
<version>${lastVersion}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
```
|
@ -16,24 +16,26 @@
|
|||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.springfox</groupId>
|
<groupId>cn.chinaunicom.sdsi</groupId>
|
||||||
<artifactId>springfox-swagger2</artifactId>
|
<artifactId>unifast-core</artifactId>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>org.hibernate.validator</groupId>
|
||||||
|
<artifactId>hibernate-validator</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.swagger</groupId>
|
<groupId>com.google.guava</groupId>
|
||||||
<artifactId>swagger-annotations</artifactId>
|
<artifactId>guava</artifactId>
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>io.swagger</groupId>
|
|
||||||
<artifactId>swagger-models</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>io.springfox</groupId>
|
|
||||||
<artifactId>springfox-swagger-ui</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>io.github.swagger2markup</groupId>
|
|
||||||
<artifactId>swagger2markup</artifactId>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
@ -3,8 +3,11 @@ package com.chinaunicom.mall.ebtp.cloud.swagger.starter;
|
|||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.context.annotation.PropertySource;
|
import org.springframework.context.annotation.PropertySource;
|
||||||
|
|
||||||
|
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
|
@EnableSwagger2
|
||||||
@PropertySource("classpath:swagger-configuration.properties")
|
@PropertySource("classpath:swagger-configuration.properties")
|
||||||
public class SwaggerStarterConfiguration {
|
public class SwaggerStarterConfiguration {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
unifast.swagger.basePackage=com.chinaunicom.mall.ebtp.cloud
|
||||||
|
unifast.swagger.title=\u6d4b\u8bd5\u63a5\u53e3\u6587\u6863
|
||||||
|
unifast.swagger.contactName=\u5409\u6797\u9879\u76ee\u7ec4
|
||||||
|
unifast.swagger.contactUrl=http://chinaunicom.com
|
||||||
|
unifast.swagger.contactEmail=chinaunicom@chinaunicom.com
|
||||||
|
unifast.swagger.version=0.0.1
|
||||||
|
unifast.swagger.description=\u7840\u540e\u53f0\u529f\u80fd\u6846\u67b6
|
Reference in New Issue
Block a user