SHARE
TWEET

Untitled

a guest Jul 14th, 2011 231 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top