Skip to content

Commit

Permalink
add configuration-option.
Browse files Browse the repository at this point in the history
  • Loading branch information
vamViolet committed Aug 9, 2022
1 parent d41209e commit 01affb5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
Binary file added README.assets/configuration-option.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ springboot + spring-context + springfox-swagger2
<dependency>
<groupId>io.github.vamViolet</groupId>
<artifactId>swagger-starter</artifactId>
<version>1.0.2-RELEASE</version>
<version>1.0.3-RELEASE</version>
</dependency>
```

Expand Down Expand Up @@ -44,4 +44,5 @@ springboot + spring-context + springfox-swagger2

![引入方式](README.assets/annotation.png)
![application](README.assets/application.png)
![swagger-ui](README.assets/swagger-ui.png)
![swagger-ui](README.assets/swagger-ui.png)
![配置提示](README.assets/configuration-option.png)
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>io.github.vamViolet</groupId>
<artifactId>swagger-starter</artifactId>
<version>1.0.2-RELEASE</version>
<version>1.0.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>swagger-starter</name>
<description>Integrate swagger-ui by annotation</description>
Expand Down Expand Up @@ -64,6 +64,12 @@
<artifactId>spring-beans</artifactId>
<version>5.2.22.RELEASE</version>
</dependency>
<!--注解提示-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>

<!-- Swagger -->
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/dongxq/config/SwaggerProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@ConfigurationProperties("swagger")
public class SwaggerProperties {
/**
* 是否开启swagger
* 是否开启swagger,默认为true,生产环境需要关闭
*/
private Boolean enabled = Boolean.TRUE;

Expand Down

0 comments on commit 01affb5

Please sign in to comment.