Description
Affects: Spring Web MVC 5.3.3
After upgrading from Spring4 to Spring5.3 we face a problem: there is no easy way to log just mappings of Controllers to endpoints.
The expected scenario: during booting a Spring MVC web application we would like to have all endpoint mappings in logs. However we don't want all request processing by Spring MVC to be logged because it would generate enormous amount of logs in production.
Currently, if we enable TRACE log level for org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
we receive both needed logs during boot of the webapp but also all requests processed are logged RequestMappingHandlerMapping - Mapped to ...
).
Please provide a way to just log the endpoint mappings.
The issue was discussed in SO: https://stackoverflow.com/questions/40621044/log-restful-endpoints-on-container-startup-in-a-spring-application