nacos配置中心
1.可以将其他应用的配置信息存储在nacos
2.
com.alibaba.cloud
spring-cloud-starter-alibaba-nacos-config
3.获取testname从nacos
@restcontroller
@requestmapping("/config")
@refreshscope
public class configcontroller {
@value(value = "${testname}")
private boolean name;
/**
* http://localhost:8080/config/get
*/
@requestmapping(" ...
by zw7534313 2023-08-05 回复 (0)