spring boot 启动 nested exception is java.lang.IllegalStateException

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

在启动spring boot 项目时报错,之前都是OK的,只是我引用了内置的tomcat包就报错了


   <
groupId>org.springframework.boot
   spring-boot-starter-tomcat
   provided

spring boot 启动 nested exception is java.lang.IllegalStateException_第1张图片

网上搜索了一下,需要把scope改成编译方式即可!


   org.springframework.boot
   spring-boot-starter-tomcat
   compile

友情提示:最好是不要引用内置tomcat,有坑?

转载于:https://my.oschina.net/alarm1673/blog/1808539

你可能感兴趣的:(spring boot 启动 nested exception is java.lang.IllegalStateException)