I followed may links and found I need to use @Requestbody
annotation and I need to set Content-Type=application/x-www-form-urlencoded
in header under @RequestMapping
annotation. But I did not find any example like how can I set these body parameters in browser and get in controller
@RequestMapping(value = "/login", headers="application/x-www-form-urlencoded" , method = RequestMethod.GET)
public void login(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServiceException {
// I need username and password body parameters value in controller
}