Skip to content
New issue

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

nacos1.3.2 is used in conjunction with spring boot 2.1.5.RELEASE Unable to complete automatic refresh. #3667

Closed
hjnjmjkj opened this issue Aug 23, 2020 · 5 comments
Labels
area/Config area/Spring Boot Related to Spring Boot help wanted Extra attention is needed

Comments

@hjnjmjkj
Copy link

Describe the bug
nacos1.3.2 is used in conjunction with spring boot 2.1.5.RELEASE
@NacosValue(value ="${hello.name:world}",autoRefreshed = true)
Unable to complete automatic refresh.

Expected behavior
Auto Refresh

Acutally behavior
Unable to complete automatic refresh.

How to Reproduce

Desktop (please complete the following information):

  • OS: [e.g. Win10]
  • Version [e.g. nacos-server 1.3.2, nacos-client 1.3.2]
  • Module [e.g. config]
  • SDK [e.g. original, nacos-config-spring-boot-starter 0.2.7,jdk8]

Additional context

com.alibaba.boot
nacos-config-spring-boot-starter
0.2.7

nacos:
config:
server-addr: localhost:8848
maxRetry: 3
configLongPollTimeout: 10000
configRetryTime: 3
autoRefresh: true
enableRemoteSyncConfig: true
remoteFirst: true
username: nacos
password: nacos

@KomachiSion KomachiSion added area/Spring Boot Related to Spring Boot area/Config help wanted Extra attention is needed labels Aug 24, 2020
@neighbor-uncleWang
Copy link
Contributor

Hello, I am a novice, I am very interested in this question, can I help you?

@hjnjmjkj
Copy link
Author

Hello, I am a novice, I am very interested in this question, can I help you?

of course

@neighbor-uncleWang
Copy link
Contributor

Hello, I am a novice, I am very interested in this question, can I help you?

of course
ok,I will start my work

@neighbor-uncleWang
Copy link
Contributor

Sorry @hjnjmjkj , when nacos1.3.2 is used together with spring boot 2.1.5.RELEASE, I did not find this problem exists. Has it been repaired? This is my example:https://github.com/neighbor-uncleWang/nacosConfigDemo

@hjnjmjkj
Copy link
Author

Sorry @hjnjmjkj , when nacos1.3.2 is used together with spring boot 2.1.5.RELEASE, I did not find this problem exists. Has it been repaired? This is my example:https://github.com/neighbor-uncleWang/nacosConfigDemo

Thank you very much, I just changed the nacos client to version 1.2.0. It should be nacos-config-spring-boot-starter 0.2.7 is not compatible with nacos client 1.3.2 client, although I added com.alibaba.nacos.client.utils.StringUtils.isBlank method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/Config area/Spring Boot Related to Spring Boot help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants