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
Spring Boot 2.7.0 WebMvcMetricsAutoConfiguration:
@ConditionalOnMissingBean
public FilterRegistrationBean<WebMvcMetricsFilter>
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.
Comment From: izeye
This seems to be a duplicate of https://github.com/spring-projects/spring-boot/issues/31150.
Comment From: wilkinsona
Indeed it is, @izeye. Thanks.
Comment From: dariosanna
OK thank you