I'm encountering an HTTP Status 404
error within my controller.
Server code
@RequestMapping(value="/showMsg/",
method=RequestMethod.GET,produces=
{
"application/json"
})'
public ResponseBody String show(){
HashMap hash = new HashMap();
hash.put("msg", "welcome to spring angular js");
return hash;
}
AngularJS code
$http.get('HelloWorld/showMsg').success(function(data){
alert("Success");
}).error(function(data){
alert("Error");
});
The issue persists with the HTTP Status 404
error message.