Not sure if this is a spring framework issue or spring boot or spring security.
I'm seeing a warning from HandlerMappingIntrospector (of spring-webmvc-7.0.3.jar):
WARN o.s.w.s.h.HandlerMappingIntrospector : Cache miss for REQUEST dispatch to '/login' (previous null). Performing CorsConfiguration lookup. This is logged once only at WARN level, and every time at TRACE.
which has been mentioned e.g. in spring-boot #38587 with Spring Boot 3.2.0 and the cause was fixed 2023 with spring-security #14128. I'm on Spring Boot 4.0.2 with Spring Security 7.0.2, and I didn't find any recent posts about this, only the older ones.
There is a workaround in spring-security #31588, but it uses HandlerMappingIntrospector which is deprecated since 7.0 and I don't know how to replace it with PathPatternParser in the workaround.
Is this warning a regression?
Minimal demo: https://github.com/philadelphus/minimal-demo
Start the application and go to http://localhost:8080/index to see the warning in the log.