谷粒商城报错

1.

Description:

Parameter 0 of method inetIPv6Utils in com.alibaba.cloud.nacos.util.UtilIPv6AutoConfiguration required a bean of type 'org.springframework.cloud.commons.util.InetUtilsProperties' that could not be found.

The injection point has the following annotations:
    - @org.springframework.beans.factory.annotation.Autowired(required=true)

错误原因:

SpringCloud版本问题

解决:

在pom.xml中,更改SpringBoot和SpringCloud版本,

本人使用:

Spring Boot2.6.6

Spring Cloud2021.0.7

2.

java: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled. Your processor is: jdk.proxy2.$Proxy28 Lombok supports: sun/apple javac 1.6, ECJ

原因:Lombok版本冲突

解决:把renren-fast中的lombok版本改成gulimall-common的版本

本人使用 1.18.26

3.

Failed to process import candidates for configuration class [io.renren.RenrenApplication]; nested exception is java.lang.IllegalArgumentException: Could not find class [org.springframework.cloud.client.loadbalancer.reactive.OnNoRibbonDefaultCondition]

4.

java.lang.IllegalStateException: Failed to load ApplicationContext

数据源有问题,因为我们引入了mysql的驱动但是没有配置数据库,可以在启动类上加:(排除掉数据源)

  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值