Spring Projects Issues

Results 1569 comments of Spring Projects Issues

**[Will Faithfull](https://jira.spring.io/secure/ViewProfile.jspa?name=wfaithfull)** commented Inspired by the suggestion by Oliver above, I have arrived at an acceptably solid hack for the time being. Rather than using the `RepositoryRestConfigurerAdapter` for my configuration,...

**[Johannes Hiemer](https://jira.spring.io/secure/ViewProfile.jspa?name=jhiemer)** commented `@Will` would you mind sharing your workaround? I had no time to look into it, but I would be highly interested.

**[Oliver Drotbohm](https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke)** commented I guess `UserRepository` in his example is additionally annotated with `@Primary`. Note, that you can just drop `public` from `InternalUserRepository` to prevent it from being exported, too....

**[Will Faithfull](https://jira.spring.io/secure/ViewProfile.jspa?name=wfaithfull)** commented `@Johannes` I've thrown together a sample on github [here](https://github.com/wfaithfull/spring-data-rest-multiple-repositories-workaround). It feels like quite a dirty workaround, but it does the job in the mean time. `@Oliver` yes,...

**[Nguyen](https://jira.spring.io/secure/ViewProfile.jspa?name=nguyenxndaidev)** commented I decided not to use spring data rest until this issue is fixed. The priority should not just minor

**[Marc Friedman](https://jira.spring.io/secure/ViewProfile.jspa?name=dc_maf)** commented I just upvoted this issue after spending a day debugging through the bowels of Spring Data Rest trying to determine why my unit tests were randomly passing...

**[Max Mumford](https://jira.spring.io/secure/ViewProfile.jspa?name=max%20mumford)** commented I also wasted a very frustrating day on this with unit tests randomly failing. My use case is similar to that of the other guys here -...

**[Marc Friedman](https://jira.spring.io/secure/ViewProfile.jspa?name=dc_maf)** commented I was able to use `@Will`'s workaround to get this working, but not before losing another half day getting it to play nice with Spring Boot. The...

**[Max Mumford](https://jira.spring.io/secure/ViewProfile.jspa?name=max%20mumford)** commented Just found another issue with having multiple repositories - secured repository methods are sometimes called during the deserialization of a json post request to a related entity,...

**[Will Faithfull](https://jira.spring.io/secure/ViewProfile.jspa?name=wfaithfull)** commented `@Max`, I don't believe what you are talking about is anything to do with the workaround. In this context, the `Repositories` bean exists to keep track of...