因为开发需求,引入了如下一些包:
|
|
结果项目无法正常启动,报如下错误:
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter.persistEphemeral(ZookeeperRegistryCenter.java:246)
The following method did not exist:
org.apache.curator.framework.api.CreateBuilder.creatingParentsIfNeeded()Lorg/apache/curator/framework/api/ProtectACLCreateModePathAndBytesable;
The method's class, org.apache.curator.framework.api.CreateBuilder, is available from the following locations:
jar:file:/home/usr/updacnce/srm.jar!/BOOT-INF/lib/curator-framework-4.0.1.jar!/org/apache/curator/framework/api/CreateBuilder.class
It was loaded from the following location:
jar:file:/home/usr/updacnce/srm.jar!/BOOT-INF/lib/curator-framework-4.0.1.jar!/
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.apache.curator.framework.api.CreateBuilder
同事提示,项目中存在包冲突,需要加入上下配置。加上配置后,问题确实解决了,但是我认为这不是优雅的解决方案,优雅的方案不是应该升级一下elasticjob-spring-boot-starter
么。
|
|