Ch11. MVC 1 : ModelAndView
SurveyController.java @Controller @RequestMapping("/survey") // 이 클래스는 "/survey" 경로 처리 public class SurveyController { // GET 방식의 "/survey" 경로 요청 처리 (주소창 직접 입력은 GET 방식) @GetMapping public String form(Model model) { List questions = createQuestions(); model.addAttribute("questions", questions); return "survey/surveyForm"; } // ... } 지금까지 컨트롤러는 위의 form() 메서드처럼 Model에 전달할 데이터를 추가하고, 뷰 이름을 String으로 ..
Web
2022. 7. 18. 21:33
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- BFS
- Tree
- DP
- MVC
- C++
- Brute Force
- permutation
- db
- recursion
- 재귀
- graph
- 이분탐색
- back tracking
- Python
- 자료구조
- Dijkstra
- CSS
- Kruskal
- C
- 조합
- binary search
- Implementation
- priority queue
- dfs
- Unity
- two pointer
- floyd warshall
- greedy
- Spring
- Stack
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함