martinnemec3
martinnemec3
I agree with this proposal. I am wondering what is the reason for choosing the constructor this way. My expectation would be to use the information about @Mock-ed fields to...
> Does this PR try to fix the situation, or do you know for sure that it fixes the situation? It actually fixes the situation. > That is, are you...
A workaround that I used on Spring Boot 3 (tested on 3.1.0): ``` @Bean @Primary public static ManagementContextFactory myServletWebChildContextFactory() { return new ManagementContextFactory(WebApplicationType.SERVLET, ServletWebServerFactory.class, ServletWebServerFactoryAutoConfiguration.class, MyForwardedHeaderFilterAutoConfiguration.class); } static class MyForwardedHeaderFilterAutoConfiguration...
I can confirm that this issue affect also the latest version (3.1.3). Due to this we are getting NPEs in production. Another working workaround seems to be to override the...