I requested method and see how it runs but get 404 error
@RequestMapping(method = RequestMethod.GET)
public User getUser(@RequestHeader(value="Access-key") String accessKey,
@RequestHeader(value="Secret-key") String secretKey){
User u = this.userService.chkCredentials(accessKey, secretKey);
System.out.println(u.toString());
return u;
}
I can see results in System.out.print()
and then something happens and return statement don't returns object.
The stack trace is,
WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/WEB-INF/views/user.jsp] in DispatcherServlet with name 'appServlet'.
But all other methods convert object into JSON and returns it