I wonder if there's a way to get all configured mappings in runtime without using Actuator's MappingsEndpoint.
With MappingsEndpoint it's as easy as pie (in Kotlin notation, in Java it's basically the same):
       @Autowired val mappingsEndpoint: org.springframework.boot.actuate.web.mappings.MappingsEndpoint
       mappingsEndpoint.mappings().contexts.values
           .asSequence()
           .mapNotNull { it.mappings["dispatcherHandlers"] }
           .filterIsInstance<Map<*, *>>()
           .mapNotNull { it["webHandler"] as? List<*> }
           .flatten()
           ...
However it makes use of Actuator and not all setups permit the MappingsEndpoint bean.
I wonder if it's possible to somehow query configured routes for the whole server from within Java/Kotlin code.
 
                        
I think you can use RequestMappingHandlerMapping get to a full list of the registered mappings.
This will give you a list of Strings that look like,
etc