New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring boot 2.0.0RC1 with data mongo: Couldn't find PersistentEntity for type class #12023
Comments
Extending |
That did the trick. |
@wilkinsona |
@dhanaraj1 See my comment above. |
I also experienced this issue, however it was Spring Data Rest that was unhappy. Rather than not extending AbstractMongoConfiguration as suggested here, I found it was due to not having the mappingBasePackages specified: @Override
protected Collection<String> getMappingBasePackages() {
return Stream.of("uk.co.whatever.domain").collect(Collectors.toList());
} For some reason Spring Data was able to find the domain entities by itself, however Spring Data Rest was not and was relying on this method to point it in the right place. Liam Edit: To be clear, the above method is an override point in AbstractMongoConfiguration |
@carlislefox Thanks for your help. I was able to fix it using your solution. MongoConfigurationSupport
|
I run into the same issue here. But I have not extended the |
When I use this class configuration, I cannot persists an Object (MyObj) with this repository:
But it works when I use this with mongo config in application.properties:
The error that im getting is:
Info:
spring boot: 2.0.0RC1
os: mac os 10.13.3
jvm: oracle jdk 1.8.0_144
The text was updated successfully, but these errors were encountered: