Web application could not be started as there was no org.springframework.boot.web.servlet.server.Ser

5 篇文章 0 订阅
4 篇文章 0 订阅

今天idea启动项目,突然报报错,错误日志如下:

Web application could not be started as there was no org.springframework.boot.web.servlet.server.ServletWebServerFactory bean defined in the context.

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

Description:

Web application could not be started as there was no org.springframework.boot.web.servlet.server.ServletWebServerFactory bean defined in the context.

Action:

Check your application's dependencies for a supported servlet web server.
Check the configured web application type.

解决方案,我这的原因是pom中没有配置

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-undertow</artifactId>
</dependency>

在pom中加上以上配置,maven重新install一下,启动成功!!

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-undertow</artifactId>
</dependency>
<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-web</artifactId>
	<exclusions>
		<exclusion>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-tomcat</artifactId>
		</exclusion>
	</exclusions>
</dependency>

  • 8
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
org.redisson.client.redisconnectionexception是一个Redisson客户端的异常类,表示无法连接到Redis服务器。 当出现这个异常时,代表Redisson客户端无法与Redis服务器建立连接,可能是由于以下原因: 1. 网络问题:可能是网络连接不稳定或者网络中断导致无法连接到Redis服务器。可以尝试检查网络连接状态,确保网络畅通。 2. Redis服务器配置问题:可能是Redis服务器配置错误导致无法连接。可以检查Redis服务器的配置文件,确保端口号、IP地址等配置正确。 3. Redis服务器未启动:如果Redis服务器未启动,就无法与之建立连接。可以检查Redis服务器是否已经启动,如果没有启动,则需要启动Redis服务器。 4. 防火墙或安全组问题:有些情况下,可能是防火墙或安全组设置导致无法连接。可以检查防火墙或安全组规则,确保允许Redis服务器的访问。 5. Redis服务异常:如果以上步骤都没有问题,那么可能是Redis服务器出现了异常。可以尝试重启Redis服务器,或者联系Redis服务器的管理员进行故障排查和修复。 总结起来,org.redisson.client.redisconnectionexception: unable to connect to redis ser表示无法连接到Redis服务器,可能是由网络问题、Redis服务器配置问题、Redis服务器未启动、防火墙或安全组问题或Redis服务异常导致的。解决这个问题的方法包括检查网络连接状态、Redis服务器配置、Redis服务器启动状态、防火墙或安全组设置以及联系Redis服务器管理员进行故障排查和修复。
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值