Spring Boot without the web server

https://stackoverflow.com/questions/26105061/spring-boot-without-the-web-server/28565277

 

1. spring.main.web-application-type=none
2.
    public static void main(String[] args) { 
        new SpringApplicationBuilder(Application.class) 
            .web(WebApplicationType.NONE) // .REACTIVE, .SERVLET 
            .bannerMode(Banner.Mode.OFF) 
            .run(args); 
    } 

springboot 设置web和非web启动

https://blog.csdn.net/u012903200/article/details/85233545

posted @ 2020-01-14 15:24  tonggc1668  阅读(174)  评论(0编辑  收藏  举报