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的驱动但是没有配置数据库,可以在启动类上加:(排除掉数据源)