본문 바로가기 메뉴 바로가기

tose33

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

tose33

검색하기 폼
  • 분류 전체보기 (1296)
    • Git (11)
    • 노트 (65)
    • Web (95)
      • Docker (6)
      • AWS (3)
      • Kubernetes (14)
      • Spring Security (5)
    • 윤성우의 열헐 C++ (28)
    • PS (911)
    • 유니티 (55)
    • 학교 (9)
      • 캡스톤 (7)
    • html & css (32)
    • 알고리즘 (18)
    • 윤성우의 열혈 자료구조 (29)
    • CS 정리 (0)
      • DB (11)
      • Network (12)
      • OS (7)
      • java (0)
      • Spring (10)
      • Spring MVC (2)
  • 방명록

ModelAndView (1)
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
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
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
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바