Spring MVC: easiest way to see incoming requests
- by flybywire
I am debugging a Spring MVC (3.0) app, deployed on tomcat.
I want to see in my console or log files all the incoming requests. Including 404s, both generated by my app or by spring because it didn't find an appropriate controller. I'd like to see something like this:
GET /index.html
GET /img/logo.png
GET /js/a.js
GET /style/b.css
POST /ajax/dothis?blah=yes
POST /ajax/dothat?foo=np
GET /nextpage.html
...
What is the easiest way to see that.