WebMvcMetricsFilter not created after upgrading to Spring Boot 2.7.0 when another user created bean of type FilterRegistrationBean is available #31451
Labels
status: duplicate
A duplicate of another issue
After upgrading from Spring Boot 2.6.8 to 2.7.0 WebMvcMetricsAutoConfiguration does not create a WebMvcMetricsFilter bean when a user created FilterRegistrationBean is available, regardless of what type of the filter bean.
In Spring Boot 2.7.0 the FilterRegistrationBean has ConditionalOnMissingBean , whereas Spring Boot 2.6.8 allways creates the bean:
Spring Boot 2.7.0 WebMvcMetricsAutoConfiguration:
It seems that ConditionalOnMisstingBean ignores the type parameter T when evaluating the condition.
Is that a bug or how to make @ConditionalOnMissingBean respects the type parameter T ?
Best regards.
The text was updated successfully, but these errors were encountered: