IDEA执行spring boot 出现Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletCont
来源:互联网 发布:网络直播课堂 编辑:程序博客网 时间:2024/06/01 09:14
idea 启动项目的时候报错(Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean),主要是以下的依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<version>${springboot-version}</version>
<scope>provided</scope>
</dependency>
由于打包是不需要tomcat的,所以这里把tomcat的依赖改为provided,那么问题来了,由于idea存在一个bug,就是provided的pom不会加入classpath中,所以运行的时候就找不到tomcat相关的包,
所以这里需要两种解决办法,具体参考以下的文章
http://blog.csdn.net/neosmith/article/details/50924681
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<version>${springboot-version}</version>
<scope>provided</scope>
</dependency>
由于打包是不需要tomcat的,所以这里把tomcat的依赖改为provided,那么问题来了,由于idea存在一个bug,就是provided的pom不会加入classpath中,所以运行的时候就找不到tomcat相关的包,
所以这里需要两种解决办法,具体参考以下的文章
http://blog.csdn.net/neosmith/article/details/50924681
1 1
- IDEA执行spring boot 出现Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletCont
- Idea 启动Sringboot 报错 Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletCont
- Spring Boot: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFa
- IDEA启动Spring Boot项目提示Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServlet...
- 【Spring Cloud】Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletCon
- Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
- Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
- Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
- Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean
- Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServlet
- Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
- Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
- Error : Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory
- Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory Bean
- spring boot启动报Unable to start EmbeddedWebApplicationContext问题解决方案
- Spring-boot Unable to start EmbeddedWebApplicationContext 分析与解决方法
- SpringbootUnable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFact
- Spring Boot jar 启动错误“due to missing embeddedServletContainerFactory.bean”
- 欢迎使用CSDN-markdown编辑器
- 2017年4月14日读书笔记
- Android 开发中DatePicker、TimePicker
- 获取Android设备信息
- python常见的错误类型和继承关系
- IDEA执行spring boot 出现Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletCont
- 信用评测,评估
- A Survey of Appearance Models in Visual Object Tracking 阅读笔记(一)
- java基础day04
- HighChart(二)图表自适应容器
- The Amazon CEO and founder published his annual letter to shareholders on Wednesday and gave a detai
- google tag manager的使用
- 欢迎使用CSDN-markdown编辑器
- 两张图 两句话彻底搞懂 js中的this 作用域 原型链