Improvment on component-scan functionnality
Hello,
Is there a way to improve the component-scan functionnality so we can write our component-scan configuration as following:
#1
<context:component-scan base-package="
com.company.mypackage1,
com.company.mypackage2,
com.company.mypackage3" />
instead of
#2
<context:component-scan base-package="com.company.mypackage1,com.company.mypackage2,com.company.mypackage3" />
When i use #1 style, idea does not recognize my spring bean. The #2 style work.
The problem is that when we have a lot of packages to scan, it is unreadable. The line is too long.
Can you do something for me ?
Regards,
Sylvain.
Please sign in to leave a comment.
Does spring itself support both styles?
If yes, then you should definitely file a bug against IntelliJ:
http://youtrack.jetbrains.net/issues/IDEA#newissue=yes
(choose component "J2EE - Spring")
-tt
Yes it works well with spring.
I'll file a bug.
The ticket is opened here
Hi Sylvain,
I've confirmed that the syntax is valid, and have added my vote to the issue you've created ;)
Thanks for reporting it.
-tt