Unable to instantiate Action, bookTypeAction, defined for 'bookTypeList' in namespace '/'
UnabletoinstantiateAction,bookTypeAction,definedfor'bookTypeList'innamespace'/'Errorc...
Unable to instantiate Action, bookTypeAction, defined for 'bookTypeList' in namespace '/'Error creating bean with name 'bookTypeAction' defined in ServletContext resource [/WEB-INF/applicationContext-oa-struts.xml]: Cannot resolve reference to bean 'bookTypeManager' while setting bean property 'bookTypeManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookTypeManager' defined in file [D:\Workspaces8.5\.metadata\.me_tcat\webapps\feaonlinesns\WEB-INF\classes\com\oa\service\impl\BookTypeManagerImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.oa.service.impl.BookTypeManagerImpl]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.oa.service.impl.BookTypeManagerImpl.()
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="default-oa" extends="default">
<action name="bookTypeList" class="bookTypeAction" method="list"/>
<action name="delbooktype" class="bookTypeAction" method="delete"/>
<action name="savebookType" class="bookTypeAction" method="save"/>
<action name="editbookType" class="bookTypeAction" method="editList"/>
</package>
</struts> 展开
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="default-oa" extends="default">
<action name="bookTypeList" class="bookTypeAction" method="list"/>
<action name="delbooktype" class="bookTypeAction" method="delete"/>
<action name="savebookType" class="bookTypeAction" method="save"/>
<action name="editbookType" class="bookTypeAction" method="editList"/>
</package>
</struts> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询