Jan 10th, 2011, 08:08 AM
Using ComponentScan in Annotation based Config?
I have been searching high and low for a way to add component scan to my annotation based configuration.
http://forum.springsource.org/showthread.php?t=70748 shows an example of some guy using @ComponentScan but I cannot find this anywhere in Spring 3. It appears that it was part of the java config extnesion that has since been merged into Spring 3 but the @ComponentScan annotation is mysteriously absent.
Any other way for me to accomplish this? I am at wits end here (for now I have been forced to just use xml config + @ImportResource to do the trick which feels somewhat against the grain).