Reputation: 19496
I have noticed that the startup time on my app is getting brutally slow. One problem is that spring security is scanning the entire classpath including my dependant jars for classes that might be annotated with secure annotations. As the maintainer of this code, I feel confident only my particular package 'com.company' will need to be secured? Is this an option in spring?
Upvotes: 2
Views: 73
Reputation: 131
Have you defined a base-package in your Spring config?
<context:component-scan base-package="com.yourcompany"/>
Upvotes: 1