I have a module/jar that I\'ve created and am using as a util library. I created a service in there like so:
@Service public class
You have to scan at least the package containing the class you want to inject. For example, with Spring 4 annotation:
@Configuration @ComponentScan("com.package.where.my.class.is") class Config { ... }
It is the same principle for XML configuration.