java - spring:autowire needs webapplication? -
i using autowire following:
@autowired @required public void setjdbctemplate(jdbctemplate jdbctemplate) { this.jdbctemplate = jdbctemplate; }
but error out like
2014-12-02 06:37:04 debug quartzschedulerthread:276 - batch acquisition of 1 triggers 2014-12-02 06:37:04 debug jobrunshell:201 - calling execute on job etlconnectorjobgroup_id16.etlconnectorjob_id16 2014-12-02 06:37:04 debug springbeanautowiringsupport:89 - current webapplicationcontext not available processing of connectorscheduler: make sure class gets constructed in spring web application. proceeding without injection.
does autowired
need spring mvc since complain webapplicationcontext
not available
update: wrongly used springbeanautowiringsupport
mvc, after remove error gone.
Comments
Post a Comment