You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use @NacosValue in parameters of a constructor, I find this annotation is invalid, but @value works.
How to solve this problem and what' s the difference between @NacosValue and @value?
Thanks very much!
The text was updated successfully, but these errors were encountered:
NacosValue is annotation in spring-boot-nacos, which make the parameter can be refresh by nacos when config changed.
value is spring boot annotation.
I'm not sure whether NacosValue can be used in parameters of a constructor.
The solution I think is not use parameters of a constructor but use it in member variables.
When I use @NacosValue in parameters of a constructor, I find this annotation is invalid, but @value works.
How to solve this problem and what' s the difference between @NacosValue and @value?
Thanks very much!
The text was updated successfully, but these errors were encountered: