Java/Spring-MVC
[MVC] Servlet 실습 / 터미널에서 http 로그 찍는법
package hello.servlet;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.boot.web.servlet.ServletComponentScan;@ServletComponentScan //서블릿 직접등록후 사용하겠음.@SpringBootApplicationpublic class ServeltApplication { public static void main(String[] args) { SpringApplication.run(ServeltApplication.class,..
Servlet 진행 도중 화이트 라벨 에러 해결
main에 @ServletComponentScan 을 달아주면된다.@ServletComponentScan //서블릿 직접등록후 사용하겠음.package hello.servlet;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.boot.web.servlet.ServletComponentScan;@ServletComponentScan //서블릿 직접등록후 사용하겠음.@SpringBootApplicationpublic class ServeltApplication { public static voi..