启动报错如下:
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
com.alibaba.nacos.spring.core.env.NacosPropertySourcePostProcessor.postProcessBeanFactory(NacosPropertySourcePostProcessor.java:152)
The following method did not exist:
com.alibaba.spring.util.BeanUtils.getBeanNames(Lorg/springframework/beans/factory/config/ConfigurableListableBeanFactory;Ljava/lang/Class;)[Ljava/lang/String;
The method's class, com.alibaba.spring.util.BeanUtils, is available from the following locations:
jar:file:/D:/svn_repository/maven/repos/com/alibaba/spring/spring-context-support/1.0.8/spring-context-support-1.0.8.jar!/com/alibaba/spring/util/BeanUtils.class
It was loaded from the following location:
file:/D:/svn_repository/maven/repos/com/alibaba/spring/spring-context-support/1.0.8/spring-context-support-1.0.8.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of com.alibaba.spring.util.BeanUtils
主要依赖如下:
<dependency>
<groupId>com.alibaba.boot</groupId>
<artifactId>nacos-config-spring-boot-starter</artifactId>
<version>0.2.10</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.1.5.RELEASE</version>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-bom</artifactId>
<version>3.0.7</version>
</dependency>