spring boot 启动 nested exception is java.lang.IllegalStateException
2019独角兽企业重金招聘Python工程师标准>>>
在启动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
spring boot 启动 nested exception is java.lang.IllegalStateException相关推荐
- nested exception is java.lang.IllegalStateException: Context namespace element 'annotation-config' a
公司还用的是spring低版本,今天用jre 8测试了一下,发现错误: Unexpected exception parsing XML document from class path resour ...
- Spring Boot整合Nacos时遇到 java.lang.IllegalStateException: Context has been already given a name 的解决办法
问题概述 在进行项目开发过程中,通过Spring Boot整合Alibaba Nacos的服务注册与发现和配置中心时,遇到个梗,启动时打印出一串错误日志信息 " Failed to rena ...
- Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous map
Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous map ...
- nested exception is java.lang.IllegalStateException: refreshAfterWrite requires a LoadingCache异常解决
nested exception is java.lang.IllegalStateException: refreshAfterWrite requires a LoadingCache异常解决 问 ...
- Spring Boot与Log4j2集成之java.lang.IllegalStateException: Logback configuration error detected:
引言: 一个问题的分析与解决过程是表与里的过程,是一个大胆猜测与小心求证的过程,spring boot与log4j2的集成过程中,我将描述一下分析这个问题的思路和过程. 我一直强调一点: 重要的不是解 ...
- methodinvocationexception: property ‘driverclassname‘ threw exception; nested exception is java.lang
抛出异常: "D:\Program Files\Java\jdk1.8.0_131\bin\java.exe" "-javaagent:D:\Program Files ...
- 项目启动时报错Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError...
报错: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'objectMa ...
- Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property
来来来,记录一下阿里云Maven中央仓库的坑,当然最主要还是自身pom.xml设置问题. 昨天项目启动还好好的,为什么今天项目一启动就报错了呢?(线上项目服务器没重启的话也是正常可以访问的,只要一重启 ...
- 报错记录:SprintBoot---Unable to start embedded container; nested exception is java.lang……
报错信息 练习一个SpringBoot的小例子后,报出以下错误:Unable to start embedded container; nested exception is java.lang.No ...
最新文章
- apache服务出现Forbidden 403问题的解决方法总结
- 光盘在电脑上为什么放不出来_铁砂掌这么厉害,为什么上擂台用不出来
- 实现java RPC框架
- matlab lpfilter.m,histroi/statmoments/lpfilter/dftuv的Matlab程序
- HTTPS下导出excel失败解决办法
- SortedDictionaryTKey,TValue正序与反序排序及Dicttionary相关
- Android 中this、getContext()、getApplicationContext()、getApplication()、getBaseContext() 之间的区别...
- Swift - 项目部署配置(支持的系统,设备和状态条样式等)
- 点评一下阿提亚和黎曼猜想
- open 读Txt文件
- 【Codecs系列】AVS+(AVS1 P16)解码器
- 栈 -- 以及用栈实现计算器
- Endnote--在参考文献列表中添加DOI
- 360全景视频panolens.js 实现代码
- 设置一绝对地址为0x67a9的整型变量的值为0xaa66
- CSDN博客里的大学生活简历——共勉
- 数据库建模-物理层建模
- LinuxC学习保姆级教程(李慧芹课程笔记)
- 洛谷 P3387 缩点 题解
- 2020中国卓越管理公司颁奖晚宴成功举办,四家香港科大EMBA校友企业获奖