spring-data-mock: Doesn't work with Spring Boot 2.0
I migrated from spring boot 1.5.6.RELEASE to 2.0.5.RELEASE. And every tests with redis-repository stoped to working with error:
java.lang.IllegalStateException: Could not find property `id` on `class my.app.service.domain.model.Entity`
I just remove library and start to use @MockBean for my repository and it works as well.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 18 (18 by maintainers)
Just import
2.0.0to one of our services on java11, spring boot2.2.6.RELEASE. And it works like a charm 🍸 Many thanks 😄Thank you to @binakot who helped clean up this issue and took care of the incompatibilities. I will be closing this now, and track the progress of automating the release once more in a separate issue.
There were several problems:
maven-javadoc-pluginhas a known issue with JDK 11,Yeah. I have deployed
2.0.0to central, so we should be able to use it. But I had to make modifications to the build mechanism that I need to push upstream.