spring-cloud-alibaba-dependencies版本2021.0.5.0中spring-boot-starter-web和spring-cloud-starter-alibaba-nacos-discovery版本冲突
Closed this issue · 2 comments
spring-cloud-alibaba-dependencies 的版本为2021.0.5.0
spring-boot-starter-web和spring-cloud-starter-alibaba-nacos-discovery都是默认的,启动就会报错:
2024-11-12 17:41:57.309 DEBUG 14024 --- [ main] c.a.nacos.shaded.io.perfmark.PerfMark : Error during PerfMark.
java.lang.ClassNotFoundException: com.alibaba.nacos.shaded.io.perfmark.impl.SecretPerfMarkImpl$PerfMarkImpl
at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_202]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_202]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_202]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_202]
at java.lang.Class.forName0(Native Method) ~[na:1.8.0_202]
at java.lang.Class.forName(Class.java:264) ~[na:1.8.0_202]
at com.alibaba.nacos.shaded.io.perfmark.PerfMark.(PerfMark.java:36) ~[nacos-client-2.2.0.jar:na]
at com.alibaba.nacos.shaded.io.grpc.internal.ClientCallImpl.(ClientCallImpl.java:109) [nacos-client-2.2.0.jar:na]
排除默认的nacos-client2.2.0,引入2.2.1就可以解决。
This issue has been open 30 days with no activity. This will be closed in 7 days.
This issue has been automatically marked as stale because it hasn't had any recent activity.If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the Sping Cloud Alibaba Community.