I am doing AngularJS and Spring REST application. Here is my code.
@RestController
@RequestMapping("/user")
// @Secured("ROLE_ADMIN")
public class UserController
{
@RequestMapping(value = "/verifyUser", method = RequestMethod.POST)
public Boolean verifyUser(@RequestBody User user)
{
}
}
If user
object is not in correct format then browser says 400 (Bad Request)
No other error is displayed in Eclipse console. I just want to see what exact error occured in deserialization if user
object is in incorrect format.