I am using autowiring in one of my projects. @autowiring
is working fine in the controller, but I need to use same autowiring object in some other class, which is used as task class for quartz. Autowiring is not working there.
I tried this code listed below, but it did not succeed. In all attempts it's getting null
for readXmlDao
.
@Repository("updateTeam")
public class TeamUpdate {
@Autowired
@Qualifier("readXmlDao")
ReadXmlDao readXmlDao;
Please suggest a solution, thanks.