Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory Bean
来源:互联网 发布:php shell 交互 编辑:程序博客网 时间:2024/06/03 10:01
http://blog.csdn.net/riyunzhu/article/details/63259718
通过这篇文章的:http://stackoverflow.com/questions/21783391/spring-boot-unable-to-start-embeddedwebapplicationcontext-due-to-missing-embedd?rq=1
看到有个老外说在代码中强制声明一个EmbeddedServletContainerFactory,代码如下:
@Bean public EmbeddedServletContainerFactory servletContainer() { TomcatEmbeddedServletContainerFactory factory = new TomcatEmbeddedServletContainerFactory(); return factory; }
强制声明之后,就报错说jetty所需jdk版本不对,顿时茅塞顿开。因为工程中默认使用的jetty版本是9.3的版本,而这个的jetty版本是需要jdk1.8的,我本机是1.7。问题原因找到了,解决办法也就有了
第一个办法:降低springboot的版本
第二个办法:强制声明jetty的版本为本机jdk适配的,如我本机jdk为1.7,那我强制声明jett的版本为:
[html] view plain copy
阅读全文
0 0
- 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 EmbeddedServletContainerFactory bean.
- 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
- Spring Boot: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFa
- Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServlet
- 【Spring Cloud】Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletCon
- IDEA执行spring boot 出现Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletCont
- IDEA启动Spring Boot项目提示Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServlet...
- Idea 启动Sringboot 报错 Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletCont
- SpringbootUnable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFact
- Spring Boot jar 启动错误“due to missing embeddedServletContainerFactory.bean”
- spring boot启动报Unable to start EmbeddedWebApplicationContext问题解决方案
- Spring-boot Unable to start EmbeddedWebApplicationContext 分析与解决方法
- Vue路由History mode模式中页面无法渲染的原因及解决
- 前端标签
- FastDFS分布式文件系统
- MySQL 主从数据库备份(初学)
- RecyclerView——LayoutAnimation
- Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory Bean
- Spark快速大数据分析
- 5.1 Web 服务器简介
- Impala Shell使用
- CentOS7安装Redis4.0.2
- xampp安装教程
- python:永远别写for循环
- TP5 where数组查询(有多个查询条件)
- PHPUnit 学习实例代码