-
Notifications
You must be signed in to change notification settings - Fork 41k
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 how to customize the basePackages that auto-configurations consider (for example Spring Data Repositories) #27549
Comments
That's what |
Now that is an annotation that I didn't already know (and it already exists since Spring Boot 1.3). This has been a well-kept secret. I might take the time and write a small blog post on it. |
We should update |
Yes, just for reference: this has been already discussed in #19024 too. |
When adding an external library to Spring Boot with a different base package structure than your Spring Boot based application, a pattern emerges in the form of additional annotations to detect components, entities, repositories etc.
Or maybe even all packages added through an
@ComponentScan
to be included (unless explicitly specified that is).This could be reduced if the
scanBasePackages
property was taken into account in places like the@EntityScan
, auto- configuration of Spring Data Repositories etc.The text was updated successfully, but these errors were encountered: