Springboot2.0无法在Tomcat7下面运行,有解决办法吗

SpringBoot2.0项目无法在Tomcat7.0下运行,在stackoverflow上面查到有人这样说:

Spring Boot 2.0 (and Spring Framework 5 upon which it builds) requires a Servlet 3.1 compatible container. Tomcat 7 only implements Servlet 3.0 so it cannot be used with Spring Boot 2.0.

目前没有发现有效的解决办法。

我试下了SpringBoot1.5项目,默认的Tomcat也是8.0的,但是通过自定义配置是可以运行在Tomcat7下面的,谁有好的解决办法。

你可能感兴趣的:(SpringBoot2.0)