【Spring-boot】运行环境获取

1、类级别 @Profile(“dev”) 好比:能够用来控制,swagger只在测试环境使用 @Profile({“dev”, “loc”}) public class SwaggerConfig {}web 2、方法级别 【Spring-boot】经过ApplicationContextAware获取spring管理对象spring
相关文章
相关标签/搜索