Update README.md

This commit is contained in:
heibaiying 2019-02-01 16:41:21 +08:00 committed by GitHub
parent dc45006c33
commit 1aeb97e185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ swagger 是一个综合的开源项目,包含[swagger-core](https://github.com
2. 在`SwaggerConfig`配置类上添加`@Profile({"dev","test"}) `注解指明在开发环境和测试环境下激活此配置类打包或者部署时候使用spring.profiles.active指明环境即可
3. 在配置文件中配置自定义的开关参数,并在`SwaggerConfig`配置类上添加`@ConditionalOnProperty(name = "swagger.enable", havingValue = "true") `,指明配置类的生效条件
3. 在配置文件中配置自定义的开关参数,并在`SwaggerConfig`配置类上添加`@ConditionalOnProperty(name = "swagger.enable", havingValue = "true") `,指明配置类的生效条件
注:@ConditionalOnProperty 注解说明