본문 바로가기

Spring/Spring

(SPRING) 스프링 웹 애플리케이션 제거방법

기본상태

@SpringBootApplication
public class DemoAopSpringApplication {

	public static void main(String[] args) {
		SpringApplication.run(DemoAopSpringApplication.class, args);
	}

}

 

WebApplicationType을 NONE으로 설정

@SpringBootApplication
public class DemoAopSpringApplication {

	public static void main(String[] args) {

		SpringApplication app = new SpringApplication(DemoAopSpringApplication.class);
		app.setWebApplicationType(WebApplicationType.NONE);
		app.run(args);

	}

}

 

꿀팁 ㅇㅈ?