功能介绍
设置和业务代码获取配置
功能实现
<!-- 添加configjar --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-config</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> #application.yml新增配置 config: name:jason //业务代码获取配置 @Value("${config.name}")
标签:中心,spring,配置,boot,springframework,config,cloud From: https://www.cnblogs.com/zhougongjin/p/17113454.html