Deploy Spring Boot 1.3.2 IBM WAS 8.5

不羁的心 提交于 2019-12-06 05:21:52

I believe that you can safely ignore the warning messages from WAS. They're rather noisy but they won't stop your application from starting successfully.

The problem appears to be that you don't have a SpringBootServletInitializer in your application. If you did, it would have been listed in this log message:

[2/3/16 13:30:52:873 AST] 00000078 webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [simpledemo_war#simpledemo.war]:.Spring WebApplicationInitializers detected on classpath: [org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration$JerseyWebApplicationInitializer@fcdf38eb]

The easiest way to provide one is to update DemoSimpleApplication to extend SpringBootServletInitializer and override its configure method:

@SpringBootApplication
public class DemoSimpleApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(DemoSimpleApplication.class);
    }

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

}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!