아는 것이 좋은 것이다.

[Spring] 뷰페이지 없이 Json 받기 본문

Spring

[Spring] 뷰페이지 없이 Json 받기

start0 2015. 1. 16. 15:18

@RequestMapping("/hello.do")

public void NoViewPage(HttpServletResponse response) throws IOException {  

response.getWriter().print("{\"name\" : \"value\"}");   

}

'Spring' 카테고리의 다른 글

Spring jar 배포시 ROOT 설정하기  (0) 2015.01.09
Comments