Post

spring boot webConfiguration 설정 제거

SpringApplication에서 WebApplicationType을 None으로 설정하면 웹 애플리케이션 설정을 제거하는 것 같다.

​

netty client 구동이 문제되어 이슈가 있었는데, 해당 설정으로 막을 수 있었다.

@SpringBootApplication
public class Client {

    public static void main(String[] args) throws Exception {
        SpringApplication app = new SpringApplication(Client.class);
        app.setWebApplicationType(WebApplicationType.NONE);
        app.run(args);
    }
}
This article is licensed under CC BY 4.0 by the author.