Closed fengshaokun closed 5 months ago
There seems to be an inconsistency in the versions of spring-data-elasticsearch and spring-data-common you use. How do you define the versions to be used in your pom.xml or gradle build file?
this is my maven
I found out that it was my springboot version of the problem, but I couldn't change my springboot version, so I thought about downloading the source code to delete the useless piece of code, and then packaging it for use, I don't know what the problem would be? if i delete isReadable()
I wonder what 5.1X-5.2X main thing is what has been modified .thanks
this is my maven
this is no maven definition. That would be a pom.xml file. You do not tell what version of Spring Boot you use, so we cannot know which versions of dependent libraries are pulled in. and what you may have changed. It seems that you changed the version of spring-data-elasticsearch without pulling in the necessary updated version of spring-data-commons.
If you change the versions of dependencies from what is included in the default setup of Spring Boot, or change the version of Spring Data Elasticsearch without adjusting it's dependencies to what is needed, you're on your own. Spring Data Elasticsearch is built, tested and released with well defined versions, any changes to that is out of our scope and rtesponsibility.
downloading the source code to delete the useless piece of code, and then packaging it for use, I don't know what the problem would be? if i delete isReadable()
Well, this code is not uselesss, it's there for a reason. If you want to download / fork the repository and modify it according to your needs feel free to do so, it's open source software.
As for the differences between versions 5.1 and 5.2 you should check the official documentation or the information from the single releases (https://github.com/spring-projects/spring-data-elasticsearch/releases)
@Test public void addOrUpdate(){
java.lang.NoSuchMethodError: 'boolean org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty.isReadable()'
Process finished with exit code -1