Advertisement
Guest User

Untitled

a guest
Jul 14th, 2011
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. @Controller
  2. @RequestMapping("test")
  3. public class SpringTestController {
  4.  
  5. @Autowired
  6. private TestService testService;
  7.  
  8. @RequestMapping("getResponse")
  9. @ResponseBody
  10. public String getResponse(HttpServletRequest request, HttpServletResponse responseContent){
  11. String response = testService.getResponse();
  12.  
  13. return response;
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement