서블릿1 #2 서블릿 서블릿 1. 서블릿 환경 구성(스프링 부트) 스프링 부트는 서블릿을 직접 등록해서 사용할 수 있도록 @ServletComponentScan을 지원한다. [@ServletComponentScan] @ServletComponentScan //서블릿 자동 등록 @SpringBootApplication public class ServletApplication { public static void main(String[] args) { SpringApplication.run(ServletApplication.class, args); } } [서블릿 예제] @WebServlet(name = "helloServlet", urlPatterns = "/hello") public class HelloServlet exte.. 2021. 6. 23. 이전 1 다음