How to show all the routes mapped in a spring based application? In Rails this is done using rake routes.
I use two mapping methods of spring to create the URL-mappings:
@RequestMappingSimpleUrlHandler
I have used the Unix command grep and cut to get all the mappings of @RequestMapping. I wonder if there is some way I can get these details from the Spring application.
If you set the Log4J category for
log4j.logger.org.springframework.webtoINFOorDEBUGyou should see the list of mappings in your server’s log (e.g.catalina.out) when your app starts up.For example: