Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Controller
- @RequestMapping("test")
- public class SpringTestController {
- @Autowired
- private TestService testService;
- @RequestMapping("getResponse")
- @ResponseBody
- public String getResponse(HttpServletRequest request, HttpServletResponse responseContent){
- String response = testService.getResponse();
- return response;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement