錯誤信息:
六月 18, 2015 11:15:17 上午 org.apache.catalina.core.StandardContext listenerStart
嚴重: Exception sending context initialized event to listener instance of class or
--只要我spring uploadZipOrRarAction類注入uploadDao類就會報上述啟動錯誤無論是set或構造注入,下面是spring配置
<!-- tool -->
<bean id="zip" class="cn.test.oop.unit.Zip"/>
<bean id="uploadDao" class="cn.test.upload.service.UploadDaoImpl" p:hibernateTemplate-ref="hibernateTemplate" />
<bean id="uploadZipOrRarAction" class="cn.test.upload.action.UploadZipOrRarAction" >
<constructor-arg index="0" ref="uploadDao"></constructor-arg>
<constructor-arg index="1" ref="zip"></constructor-arg>
</bean>
action ---
private UploadDaoImpl uploadDaoImpl;
private Zip zip;
//spring構造注入
public UploadZipOrRarAction(UploadDaoImpl uploadDaoImpl,Zip zip){
this.uploadDaoImpl=uploadDaoImpl;
this.zip=zip;
}
求大神解答
現在我們都用intellij idea了,用maven解決jar包依賴等問題,把精力放在業務邏輯上