Skip to content

@RefreshScope should be placed on the ServiceConfig class #5

Description

@sify21

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions