java - How to scan multiple paths using the @ComponentScan annotation? - Stack Overflow
@ComponentScan uses string array, like this:
@ComponentScan({"com.my.package.first","com.my.package.second"})
When you provide multiple package names in only one string, Spring interprets this as one package name, and thus can't find it.
Read full article from java - How to scan multiple paths using the @ComponentScan annotation? - Stack Overflow
No comments:
Post a Comment