-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
java.lang.IllegalStateException is thrown by invoking findBy method #3294
Comments
I also ecountered this using "org.springframework.boot:spring-boot-starter-data-mongodb" |
Thank you @quaff for reporting and adding the test snippet. The current behaviour, though unintuitive, is the expected one. The We're considering to enhance the current flow so that we capture method metadata early and can provide it later on in this scenario. Meanwhile you can try it this way |
Thanks, it works, does the document mention such limitation? |
Unfortunately not, all samples are using one of the terminating ( |
We can catch these cases by checking whether the returned object is an instance of |
Here is test case:
with
The text was updated successfully, but these errors were encountered: