Spring @Controller, @RequestMapping
1. Controller ํด๋์ค ๊ธฐ๋ณธ์ ์ผ๋ก Controller ํด๋์ค๋ฅผ ์์ฑํ ๋๋ 1๏ธโฃ @Controller๋ฅผ ์ด์ฉํ ํด๋์ค ์์ฑ 2๏ธโฃ @RequestMapping์ ์ด์ฉํ ์์ฒญ ๊ฒฝ๋ก ์ง์ 3๏ธโฃ ์์ฒญ ์ฒ๋ฆฌ ๋ฉ์๋ (handler) ๊ตฌํ 4๏ธโฃ "๋ทฐ ์ด๋ฆ" ํน์ ModelAndView ๋ฆฌํด ์ด๋ url mapping๊ณผ ๋ฉ์๋ ์ด๋ฆ ๋ทฐ ์ด๋ฆ์ ๊ฐ์ ํ์๋ ์์ง๋ง ํท๊ฐ๋ฆด ์๋ ์์ผ๋ ํ๋จ์ ์์์ ! 2. ๋ค์ํ path,url ์์๋ณด๊ธฐ request path๋ /common ์ด๋ฉฐ context path๋ /sts10_request์ด๋ค. Servlet request URI : context path : request path : VIEW file : VIEW(JSP) url : VIEW Path : u..
2021.11.26