I got package structure like:
(...)
com.domain.group.dao
com.domain.group.service
(...)
com.domain.users.dao
com.domain.users.service
Is there any way to tell the spring that should scan just all the classes which package ends with “dao” or “service” ?
here’s example of similar problem, but it doesn’t resolve my problem.
@See Spring Reference Chapter 4.10.3 Using filters to customize scanning
Appendix: (because of the comments)
It is possible to have multiple
include-filters andexclude-filters but the order is important: firstinclude-filterthenexclude-filter– seespring-context-3.0.xsd: