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

@NacosValue获取不到属性 #222

Open
aim-pure opened this issue Jan 10, 2022 · 4 comments
Open

@NacosValue获取不到属性 #222

aim-pure opened this issue Jan 10, 2022 · 4 comments

Comments

@aim-pure
Copy link

springboot集成阿里云的ACM后,配置生效了,但是使用@NacosValue获取不到属性值,但是使用@value是可以获取到属性的,配置文件里就是:

@aim-pure
Copy link
Author

a:
b: XXX
这样的配置,使用的依赖为:
com.alibaba.boot
nacos-config-spring-boot-starter
${latest.version}

@aim-pure aim-pure reopened this Jan 10, 2022
@ilaotan
Copy link

ilaotan commented Feb 23, 2022

好像的确是这样. NacosValue竟然没效果了.

@hujun-w-2
Copy link
Collaborator

hujun-w-2 commented Aug 15, 2022

@realJackSun 涉及阿里云的ACM,能否帮忙看看?

@fengsh998
Copy link

试了无数遍,我的是spring 3.1.5 版本,用@NacosValue无论怎么弄就是读不到,用@value就可以。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants