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相关推荐

  1. nested exception is java.lang.IllegalStateException: Context namespace element 'annotation-config' a

    公司还用的是spring低版本,今天用jre 8测试了一下,发现错误: Unexpected exception parsing XML document from class path resour ...

  2. Spring Boot整合Nacos时遇到 java.lang.IllegalStateException: Context has been already given a name 的解决办法

    问题概述 在进行项目开发过程中,通过Spring Boot整合Alibaba Nacos的服务注册与发现和配置中心时,遇到个梗,启动时打印出一串错误日志信息 " Failed to rena ...

  3. 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 ...

  4. nested exception is java.lang.IllegalStateException: refreshAfterWrite requires a LoadingCache异常解决

    nested exception is java.lang.IllegalStateException: refreshAfterWrite requires a LoadingCache异常解决 问 ...

  5. Spring Boot与Log4j2集成之java.lang.IllegalStateException: Logback configuration error detected:

    引言: 一个问题的分析与解决过程是表与里的过程,是一个大胆猜测与小心求证的过程,spring boot与log4j2的集成过程中,我将描述一下分析这个问题的思路和过程. 我一直强调一点: 重要的不是解 ...

  6. 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 ...

  7. 项目启动时报错Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError...

    报错: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'objectMa ...

  8. Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property

    来来来,记录一下阿里云Maven中央仓库的坑,当然最主要还是自身pom.xml设置问题. 昨天项目启动还好好的,为什么今天项目一启动就报错了呢?(线上项目服务器没重启的话也是正常可以访问的,只要一重启 ...

  9. 报错记录:SprintBoot---Unable to start embedded container; nested exception is java.lang……

    报错信息 练习一个SpringBoot的小例子后,报出以下错误:Unable to start embedded container; nested exception is java.lang.No ...

最新文章

  1. apache服务出现Forbidden 403问题的解决方法总结
  2. 光盘在电脑上为什么放不出来_铁砂掌这么厉害,为什么上擂台用不出来
  3. 实现java RPC框架
  4. matlab lpfilter.m,histroi/statmoments/lpfilter/dftuv的Matlab程序
  5. HTTPS下导出excel失败解决办法
  6. SortedDictionaryTKey,TValue正序与反序排序及Dicttionary相关
  7. Android 中this、getContext()、getApplicationContext()、getApplication()、getBaseContext() 之间的区别...
  8. Swift - 项目部署配置(支持的系统,设备和状态条样式等)
  9. 点评一下阿提亚和黎曼猜想
  10. open 读Txt文件
  11. 【Codecs系列】AVS+(AVS1 P16)解码器
  12. 栈 -- 以及用栈实现计算器
  13. Endnote--在参考文献列表中添加DOI
  14. 360全景视频panolens.js 实现代码
  15. 设置一绝对地址为0x67a9的整型变量的值为0xaa66
  16. CSDN博客里的大学生活简历——共勉
  17. 数据库建模-物理层建模
  18. LinuxC学习保姆级教程(李慧芹课程笔记)
  19. 洛谷 P3387 缩点 题解
  20. 2020中国卓越管理公司颁奖晚宴成功举办,四家香港科大EMBA校友企业获奖

热门文章

  1. (转)SplitContainer 控件(Windows 窗体)
  2. 基于SSM实现健康食品零售网站
  3. JSP/Servlet实验室设备管理系统文档
  4. Spark的RDD分区器
  5. 迁移学习——入门笔记
  6. 鹅厂2020暑期实习第一次一面
  7. Vue.js 源码分析(二十三) 指令篇 v-show指令详解
  8. vim简单使用教程【转】
  9. Java之 javaObject与jsonString的转换
  10. H5跟ios、android交互跟数据对接