Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

@RefreshScope should be placed on the ServiceConfig class #5

Open
sify21 opened this issue Jan 19, 2018 · 0 comments
Open

@RefreshScope should be placed on the ServiceConfig class #5

sify21 opened this issue Jan 19, 2018 · 0 comments

Comments

@sify21
Copy link

sify21 commented Jan 19, 2018

I use spring boot 1.5.9.RELEASE and spring cloud Edgware.RELEASE. Put RefreshScope on the Application class is not working(when I hit /refresh endpoint, property not reloaded). I have to put it on the ServiceConfig class which holds the property. The annotation's document says that "Beans annotated this way can be refreshed at runtime".
I don't know if it used to work when you wrote the book. Maybe it's version-related?
Great book by the way!

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

No branches or pull requests

1 participant