运行错误之Error creating bean with name 'client' defined in class path resource [conf/vcollab-es.xml]

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticSearchRepository': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [conf/vcollab-es.xml]: Cannot resolve reference to bean 'client' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'client' defined in class path resource [conf/vcollab-es.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchFieldError: LUCENE_4_0_0

 

解决办法:将发布包下的WEB-INF -》lib下的重复的jar包删除就可以了,是应为jar包重复导致。


版权声明:本文为zhang135687原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。