How to call spring controller via Angularjs Controller
Hi i am new to spring restful service using angular.js, i need to display data returning from spring controller via angular js. Here i hava attached the code Controller file:- @Controller public class Control { @RequestMapping(value="/getContent",method = RequestMethod.GET,produces = {"application/json"}) public @ResponseBody String show(){ String msg = "welcome to spring angular js"; return msg; }} servlet file: <context:component-scan base-package="spring" /> <mvc:annotation-driven content-negotiation-manager="contentManager"/> <bean id="contentManager" class="org.springframework.web.accept.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.