login.jsp
-------------
<script >
var eduAPP = angular.module('eduAPP',[]);
eduAPP.controller('eduListController',function($scope,$http)
{
alert("hi");
$http({method : 'GET',url : 'getServiceCall'})
.success(function(data, status) {
alert("Success");
})
.error(function(data, status) {
alert("Error");
});
});
</script>
controller
------------
@RequestMapping(value="/getServiceCall" ,method=RequestMethod.GET)
public @ResponseBody String secviceCall(HttpServletResponse response)
{
System.out.println("I am trying for service Call..");
return "hi";
}
我正在进行一次ajax调用,ServiceCall方法正在调用,但是ResponseBody在jsp页面中没有工作我正在收到错误警告框。 任何帮助都将在推荐中得到推荐