We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refer to alibaba/nacos#2202
The text was updated successfully, but these errors were encountered:
非注解方式时,当远程配置文件改变后, environment 中的配置没有变化
Sorry, something went wrong.
看下listener是否有接收到nacos的推送,有可能是因为Spring Context的关系导致的
该问题已修复,由于xml配置解析没有解析相应的而外信息项导致的
我使用nacos-spring-context 1.1.1 也遇到相同的问题,需要如何解决呢? 使用配置类配置时可以实现配置热更新但是使用xml配置就不行了。 配置类: @Profile(value = {"dev","default"}) @Configuration @EnableNacosConfig(globalProperties = @NacosProperties(serverAddr = "127.0.0.1:8848", username="read",password="read",namespace = "41635d4a-1a7f-4315-a6ae-5a9056ccac75")) @NacosPropertySource(dataId = "dev-nacos.properties", groupId = "DEFAULT_GROUP", autoRefreshed = true, properties = @NacosProperties()) public class NacosConfDev { } xml:
@Profile(value = {"dev","default"}) @Configuration @EnableNacosConfig(globalProperties = @NacosProperties(serverAddr = "127.0.0.1:8848", username="read",password="read",namespace = "41635d4a-1a7f-4315-a6ae-5a9056ccac75")) @NacosPropertySource(dataId = "dev-nacos.properties", groupId = "DEFAULT_GROUP", autoRefreshed = true, properties = @NacosProperties()) public class NacosConfDev { }
<nacos:annotation-driven/> <nacos:global-properties server-addr="127.0.0.1:8848" namespace="41635d4a-1a7f-4315-a6ae-5a9056ccac75" username="read" password="read"/> <nacos:property-source data-id="dev-nacos.properties" group-id="DEFAULT_GROUP" auto-refreshed="true" />
rushsky518
No branches or pull requests
Refer to alibaba/nacos#2202
The text was updated successfully, but these errors were encountered: