-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Refresh Configuration Beans #504
Comments
Remove |
To reconfigure security (if it can be reconfigured) you would have to listen for an |
@spencergibb |
@spencergibb You mean there is no clean way to reconfigure security? |
|
@spencergibb Good to know. But the above code did work for me. I've tested it many many times. I think @EnableConfigurationProperties is the default setting now. |
Closing due to age of the question. If you would like us to look at this issue, please comment and we will look at re-opening the issue. |
I have a web security config class that looks like:
The
Config
is:So basically, whenever I change the
ignored
property, theConfig
bean will be refreshed. It won't happen, however, to theSecurityConfig
bean. Since @RefreshScope doesn't work with @configuration, I wonder how to refresh the config bean? Specially, I want to have the methodre-run to reflect the changes. Right now, it cannot pick up any change I made to the property file.
The text was updated successfully, but these errors were encountered: