亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

導入了servlet包沒有用,加了構造函數還是沒用啊?

導入了servlet包沒有用,加了構造函數還是沒用?。?/h1>
四季花海 2023-03-18 18:14:50
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chargeoffDetailAction' defined in file [D:\apache-tomcat-6.0.26\webapps\CreditService\WEB-INF\classes\applicationContext-action.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.db.credit.loan.inloan.chargeoff.action.ChargeoffDetailAction]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: The import javax.servlet.ServletContext cannot be resolvedThe import javax.servlet.http.HttpServletRequest cannot be resolvedThe import javax.servlet.http.HttpServletResponse cannot be resolvedThe import javax.servlet.http.HttpSession cannot be resolvedHttpServletResponse cannot be resolved to a typeThe method getRequest() is undefined for the type BaseAction<T>The method getRequest() is undefined for the type BaseAction<T>The method getRequest() is undefined for the type BaseAction<T>HttpServletRequest cannot be resolved to a typeHttpServletResponse cannot be resolved to a typeHttpSession cannot be resolved to a typeServletContext cannot be resolved to a typeThe method getServletContext() is undefined for the type BaseAction<T>at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)at com.db.credit.loan.inloan.chargeoff.action.ChargeoffDetailAction.<init>(ChargeoffDetailAction.java:37)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)at java.lang.reflect.Constructor.newInstance(Constructor.java:513)at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)... 30 more
查看完整描述

1 回答

?
慕容708150

TA貢獻1831條經驗 獲得超4個贊

你的spring application.xml配置錯誤,或者加載的東西不存在,導致初始化加載失敗

查看完整回答
反對 回復 2023-03-21
  • 1 回答
  • 0 關注
  • 108 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號