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
@RefreshScope GenericFilterBean will fail to initialize #7151
Comments
That's weird isn't it, and easy to reproduce? It must be to do with the fact that it's a Of course there's no terribly good reason for a |
Same issue when applying an |
I had the same issue with a custom @Order(Ordered.HIGHEST_PRECEDENCE)
@Bean
public FilterRegistrationBean contextFilterRegistrationBean() {
FilterRegistrationBean registrationBean = new FilterRegistrationBean<>();
CustomFilter contextFilter = new CustomFilter();
registrationBean.setFilter(contextFilter);
registrationBean.setOrder(1);
return registrationBean;
} |
will cause the following exceptions:
Because GenericFilterBean will be created as a CGLIB proxy and it's 'logger' instance will be null.
The text was updated successfully, but these errors were encountered: