摘要: 一、为什么会想到定义@SpringCloudProfile这样的注解 首页提一下@Profile注解:它主要用与Spring Boot多环境配置中,指定某个类只在指定环境中生效,比如swagger的配置只允许开发和测试环境开发,线上需要禁止使用。 使用@Profile进行如下配置: 但是在Sprin 阅读全文
posted @ 2019-11-12 23:33 N!CE波 阅读(1425) 评论(0) 推荐(0) 编辑