Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean
来源:互联网 发布:韩国人种相貌 知乎 编辑:程序博客网 时间:2024/06/05 07:08
今天想练习下spring boot,然后报了这个错,找了google无果。
其实是maven配置有问题,我把spring boot的内置容器干掉了,spring boot内置tomcat容器,我pom.xml是这样写的。
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>${springboot.version}</version> <!--不需要打包成一个war包,或者说不用内置的spring容器,--> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> </exclusions> </dependency>
我的pom.xml把tomcat容器干掉了,然后我又没有什么容器能够运行,所以会报错。
我只需要使用其他容器就行,比如说下面的undertow 或者jetty
再加个依赖就能跑了
<!-- starter-undertow --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-undertow</artifactId> <version>${springboot.version}</version> <exclusions> <exclusion> <artifactId>jboss-logging</artifactId> <groupId>org.jboss.logging</groupId> </exclusion> </exclusions> </dependency>
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 分析与解决方法
- centos 搭建node服务器
- Redis 分片遇到的问题
- Android开发--mark
- 02-线性结构1 两个有序链表序列的合并 (15分)
- 时间类的静态成员计数
- Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean
- Class PLBuildVersion is implemented in both. One of the two will be used. Which one is undefined.
- asp获得完整的url
- Android NDK: jni/Android.mk: Cannot find module with tag 'scripting/js-bindings/proj.android/prebuil
- 关于Android imagelaoder优化处理
- (ssl1760)商店选址问题
- EditText字数限制及状态判断
- 历届试题 幸运数
- hackinglab注入关WP