一、类级别
@Profile(“dev”)
比如:可以用来控制,swagger只在测试环境使用
@Profile({“dev”, “loc”})
public class SwaggerConfig {}
【Spring-boot】运行环境获取
最新推荐文章于 2024-01-16 15:37:29 发布
一、类级别
@Profile(“dev”)
比如:可以用来控制,swagger只在测试环境使用
@Profile({“dev”, “loc”})
public class SwaggerConfig {}