Hi all,
I have a little problem that I just can't figure out how to make this work.
I have written some services that I want to autowire into a class so I can access the database.
Spring however seems to ignore the autowired annotations or something like that, because my services (that should be autowired) are always null.
In other classes there is no problem autowiring the same services.
Just to make sure I have everything configured as it should here's the code for applicationContext.xml
and here is the class I want to autowire the servicesCode:<tx:annotation-driven />
<context:component-scan base-package="..." />
<context:annotation-config />
I left out the other code which I thought was not relevantCode:@Component
public class SurveyResultFilter implements Serializable {
private static final long serialVersionUID = 499484529915188060L;
@Autowired
private transient CategoryService categoryService;
@Autowired
private transient SkillService skillService;
}
Thanks for your help!

