您好,欢迎来到华拓科技网。
搜索
您的当前位置:首页spring boot 启动 nested exception is java.lang.IllegalStateException

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

来源:华拓科技网

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

<dependency>
   <
groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-tomcat</artifactId>
   <scope>provided</scope>
</dependency>

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

<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-tomcat</artifactId>
   <scope>compile</scope>
</dependency>

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

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

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo6.cn 版权所有 赣ICP备2024042791号-9

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务