Closed LittleM318 closed 4 years ago
补充:启动的时候没有这个问题,能正确读取到nacos配置中心的配置,但是更新了配置中心的配置后,报这个错误,并且本地的配置没有被更新。该错误每30秒均会抛出。
@LittleM318 你很可能用了jasypt-spring-boot-starter,建议将此升级为3.0版本可以解决此问题
duplicate with #3528
@LittleM318 你很可能用了jasypt-spring-boot-starter,建议将此升级为3.0版本可以解决此问题
感谢大佬,就是这个问题。
@LittleM318 你很可能用了jasypt-spring-boot-starter,建议将此升级为3.0版本可以解决此问题
是的大佬,确实是这个问题,但是为啥呢?
Issue Description
通过nacos配置中心更新配置文件失败 报错:Could not resolve placeholder 'project.version' in value "${project.version}" Type: bug report or feature request
Describe what happened (or what feature you want)
2020-07-23 10:38:14.326 - INFO 22456 [13-c60811fd1f04] c.a.nacos.client.config.impl.CacheData : [fixed-172.21.9.17_8848-172.21.9.172_8849-172.21.9.172_8850-38f49afe-a85d-4e2e-a813-c60811fd1f04] [notify-context] dataId=ubp-cloud-order, group=com.unionpay.ubp.dev, md5=d1226b205ea0fea791dddae3d6372046
2020-07-23 10:38:14.330 -ERROR 22456 [13-c60811fd1f04] c.a.nacos.client.config.impl.CacheData : [fixed-172.21.9.17_8848-172.21.9.172_8849-172.21.9.172_8850-38f49afe-a85d-4e2e-a813-c60811fd1f04] [notify-error] dataId=ubp-cloud-order, group=com.unionpay.ubp.dev, md5=d1226b205ea0fea791dddae3d6372046, listener=com.alibaba.cloud.nacos.refresh.NacosContextRefresher$1@6a29d1b5 tx={}
java.lang.IllegalArgumentException: Could not resolve placeholder 'project.version' in value "${project.version}"
2020-07-23 10:38:14.331 - INFO 22456 [13-c60811fd1f04] c.a.nacos.client.config.impl.CacheData : [fixed-172.21.9.17_8848-172.21.9.172_8849-172.21.9.172_8850-38f49afe-a85d-4e2e-a813-c60811fd1f04] [notify-listener] time cost=5ms in ClientWorker, dataId=ubp-cloud-order, group=com.unionpay.ubp.dev, md5=d1226b205ea0fea791dddae3d6372046, listener=com.alibaba.cloud.nacos.refresh.NacosContextRefresher$1@6a29d1b5
Describe what you expected to happen
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
springboot2.2.6.release spring-cloud-starter-alibaba-nacos-config 2.2.1.release
Anything else we need to know?