Spring Jackson Rest debug

If you try to POST/PUT data on an REST Endpoint and if you have a 400 error response from your Spring backEnd as the json is not well recognized by the server; go to the DispatcherServlet class and put a breakpoint on doDispatch or doRun something like this, you can use log4j and set the TRACE level to make it traced in the console logs.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s