Stephan van Hulst wrote:What this will do is register all beans in the "java" package and sub-packages and make them available for you to inject in your application.
I hypothesize that it will make your application a lot slower and it will also be completely pointless because there are no services in the packages I mentioned that use annotations to inject the discovered beans.
Why would you want to do this?
Im looking for good place to put this Config class with @ComponentScan annotation. So my solution is to move all packages (service, data, model, presentation) to new, big package like "student-management-system" and put @ComponentScan("student-management-system") ? Because I do not see any other solution for the scan to work.