Closed theWando closed 6 years ago
I am having a different issue with Spring Boot 2.1.0 on startup; when attempting to instantiate several of my repositories, I'm getting the error:
Caused by: java.lang.IllegalStateException: You have defined query method in the repository but you don't have any query lookup strategy defined. The infrastructure apparently does not support query methods!
EDIT: It looks like RepositoryFactorySupport:getQueryLookupStrategy
has had its method signature changed to:
protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable Key key, QueryMethodEvaluationContextProvider evaluationContextProvider)
Whereas DynamoDBRepositoryFactory:getQueryLookupStrategy
has:
protected Optional<QueryLookupStrategy> getQueryLookupStrategy(Key key, EvaluationContextProvider evaluationContextProvider)
This appears to have happened in this commit between 2.1.0.M2 and 2.1.0.RC3 due to this JIRA issue
I have a PR open to fix this here.
I increased the version number to 5.1.4
; I'm not sure if this was the right move.
@derjust This is my first time contributing to this codebase (even though I've been using the project for three years now; thank you for all your hard work!). If there's anything else left to be done, please let me know!
@ryonday - nope the open PRs looking good. Presumably the versions number will be 5.1.0
but that's not really a bummer.
Hope to find an evening soon to get this merged, build & published to Central
For those that need immediate access to those artifacts, the 5.1.0-SNAPSHOT
build might be an option until 5.1.0
is released.
for noobs like me who are still learning gradle you need to add is this.
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
Shout to derjust too. Thanks for all your awesome work on this project. We use this library extensively at our company. It's a real life saver.
Glad to hear @stewartmatheson
Updated the README.md
I have a micro service using this and working properly on spring boot 2.0.6, but updating to 2.1.0 the build fails.
Expected Behavior
Tests pass
Actual Behavior
Tests fails with the following message:
Steps to Reproduce the Problem
Specifications with 2.0.6
All those information are logged by
org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory
onINFO
level on startup. Or usejava -version
andmvn dependency:tree | grep -E 'spring|aws'
to provide those version numbers.