갓태희

[Spring] Spring Boot Web Server Off 본문

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 할수있다.

'Spring' 카테고리의 다른 글

[Spring] Dependency Management  (0) 2021.06.22
Comments