springboot ---坑 tomcat部署springboot 一直运行不起来

1、首先部署springboot项目的tomcat的版本必须在8.0之后

2、springboot 同样是基于maven的,那么在pom.xml中的tomcat的依赖:


org.springframework.boot
spring-boot-starter-web


tomcat-embed-el
org.apache.tomcat.embed


tomcat-embed-websocket
org.apache.tomcat.embed


3、这个地方就是坑了,不仅仅tomcat的版本要在8.0之上,就连javaee的版本也要在8.0及以上


javax
javaee-api
8.0

 

其他基础必备的,加上这些坑就应该ok的了

 

转载于:https://www.cnblogs.com/haoxiu1004/p/10308511.html

你可能感兴趣的:(springboot ---坑 tomcat部署springboot 一直运行不起来)