spring clould中使用naocs热部署读取配置文件

重要注解
@Component 交给spring bean管理
@RefreshScope 刷新系统配置
@Value 获取系统配置
spring clould中使用naocs热部署读取配置文件_第1张图片

spring clould中使用naocs热部署读取配置文件_第2张图片

你可能感兴趣的:(spring,java,后端)