Closed zhujiebing closed 4 years ago
@zhujiebing can you debug in your application to see whether the nacos has publish the new config content correctly?
If nacos return correct content, It may be druid bug, or the content has some problem.
I search for this error information, the message is that the filter
caused.
I think it's may be the end of url-pattern: /druid/*
properties make later configuration as comment.
这个问题非nacos异常,druid本身的参与校验引起的
public void setUsername(String username) {
if (StringUtils.equals(this.username, username)) {
return;
}
if (inited) {
throw new UnsupportedOperationException();
}
this.username = username;
}
@zhujiebing 您好,这个问题最后如何处理的呢。我这边和您的一模一样,需要对密码加密
@zhujiebing 您好,这个问题最后如何处理的呢。我这边和您的一模一样,需要对密码加密
直接明文了。
@zhujiebing 您好,这个问题最后如何处理的呢。我这边和您的一模一样,需要对密码加密
直接明文了。
我这边去官网看了下jasypt升级,3.0.3以上版本开始支持nacos动态刷新,现在没问题了,您也可以试试,是因为刷新配置,重新加载密文不会解密了。希望能帮到你
试过nacos-client:1.4.1版本同样有这个问题,将nacos-client版本升级到2.1.0版本后解决。 PS:留意高版本的alibaba.cloud包中引用了旧版本的nacos-client版本(此处踩过坑)。【例:springcloudAlibaba:2021.1 nacos-client:1.4.1】
Issue Description
配置文件中连接池使用druid,用户名密码加解密使用jasypt,启动正常,crud正常使用。 当修改配置里面的某一个非druid的普通key value配置时再发布,client端异常。 Type: bug report or feature request
Describe what happened (or what feature you want)
Tell us your environment
spring cloud alibaba 2.2.1.RELEASE;spring cloud Hoxton.SR1;spring boot 2.2.2.RELEASE; nacos server是linux外置mysql 1.3.0 ; druid 1.1.21
Anything else we need to know?