Spring

[Spring] Spring Boot Web Server Off

갓태희 2021. 6. 22. 20:28
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;

public class Application {
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication();
        springApplication.setWebApplicationType(WebApplicationType.NONE);
    }
}

@SpringBootApplication을 없애고 WebServer 구동을 None 할수있다.