-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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
Document @EntityScan changed in upgrade guide #6340
Comments
The regression comes from the fact that any custom |
I'm not 100% convinced that we should. Perhaps someone has created their own |
I agree. What I thought to be a regression is actually a more consistent behaviour of boot. If you decide to create your own configuration, Boot should basically back-off and let you do your thing. I wasn't sure about the lifecycle of the post-processor so I created a test and this actually override any customization applied in the So I think it's more a matter of playing nice with this use case. We can decide to let the user grab the packages manually via |
The original I.e. Drop |
I've updated the release notes: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.4.0-RC1-Release-Notes#entityscan |
Hi,
I'm trying out the new 1.4.0.RC1. In my app, I have two different EntityManagerFactories configured and use Spring Data JPA Repositories.
When I switch from the now deprecated annotation
org.springframework.boot.orm.jpa.EntityScan
to the new oneorg.springframework.boot.autoconfigure.domain.EntityScan
, my app no longer starts. According to the exception message, the persistence unit is no longer found.I made a stripped down demo to reproduce the problem: https://github.com/hho/entityscanproblem (
mvn test
to see it fail)Stacktrace of the error
The text was updated successfully, but these errors were encountered: