Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- CEP
- querydsl
- Spring
- zabbix
- gwt-ext
- jstl
- custom filter
- localdatetime
- drools
- Hudson
- MySQL
- Spring MVC
- @SqlResultSetMapping
- JBoss Seam
- Drools Fusion
- rember me
- ibatis
- spring security
- gwt
- spring transaction
- COC
- maven
- jquery
- guvnor
- jenkins
- spring jpa
- java tip
- SVN
- GEventEvaluator
- JPA
Archives
- Today
- Total
목록Spring MVC (1)
봉 블로그
Spring MVC 버전별 Controller 사용 예시
1. Spring MVC 2.5🔹 View 반환 (JSP 등) @Controllerpublic class HelloController { @RequestMapping("/hello") public ModelAndView hello() { ModelAndView mav = new ModelAndView("hello"); mav.addObject("message", "Hello from Spring 2.5"); return mav; }}ViewResolver 설정 (XML): 🔹 JSON 반환Spring MVC 2.5는 @ResponseBody도 없고, REST 컨트롤러 개념도 없기 때문에 JSON 응답을 위해서는 View 객체로 JSON을 ..
개발환경/Spring
2025. 7. 12. 21:58