SpringWeb1 @Controller ์ @RestController ๊ฐ๋ ๋ฐ ์ฐจ์ด์ ์คํ๋ง ํ๋ ์์ํฌ์์ Controller๋ฅผ ์ง์ ํด์ฃผ๋ ์ ๋ ธํ ์ด์ ์ @Controller์ @RestController๊ฐ ์๋ค.์ปจํธ๋กค๋ฌ๋ฉด ์ปจํธ๋กค๋ฌ์ง ์ ๋๊ฐ๋ก ๋๋ ์ ธ์์๊น? ์ด๊ฒ์ ์คํ๋ง์ด ์น ๊ฐ๋ฐ์๊ฐ ์ฌ์ฉํ๊ธฐ ํธํ๋๋ก ๊ตฌ๋ถํด๋์๊ฒ!์ ์ฌ์ฉํ๊ธฐ ํธํ๊ฒ์ธ์ง ๊ฐ๋ ๊ณผ ์ฌ์ฉ๋ฒ์ ์์๋ณด์.@Controller@Target({ElementType.TYPE})@Retention(RetentionPolicy.RUNTIME)@Documented@Componentpublic @interface Controller { @AliasFor( annotation = Component.class ) String value() default "";} - MVC ํจํด์ ์ปจํธ๋กค๋ฌ- View(HTML, JSP .. 2025. 2. 26. ์ด์ 1 ๋ค์