스프링 부트 환경에서 서블릿을 등록하고 사용해 보자! 스프링 부트는 서블릿을 직접 등록해서 사용할 수 있도록 @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 e..