org.springframework.web.struts找不到

1、org.springframework.web.struts找不到:

a:Package org.springframework.web.struts中的ActionSupport在3.0版本已经抛弃了,包com.opensymphony.xwork2包含ActionSupport类

b:下载spring-webmvc-struts.jar放入lib目录即可。

2:No mapping found for dependency [type=java.lang.String, name='actionPackages'] in public void org.apache.struts2.config.ClasspathPackageProvider.setActionPackages(java.lang.String).

只要在web.xml中的struts filter加上actionPackages 如下:

<filter>
<filter-name>strutsfilter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
filter-class>
<init-param>
<param-name>actionPackagesparam-name>
<param-value>com.logo.group.webapp.action,com.logo.group.harvest.actionparam-value>
init-param>
filter>

你可能感兴趣的:(Java)