1。
java.lang.NullPointerException com.opensymphony.xwork2.ognl.SecurityMemberAccess.isPackageExcluded(SecurityMemberAccess.java:114
这个是因为action类不能没有包定义,否则是要报这个错误。
2。
spring的bean不能生效,后来发现,是strcts.xml的action的class要和sping的appcontext.xml的bean的id一致。
3.
eclipse、java虚拟机和java jdk的版本要一致,以及系统的32,64位一致,可以通过修改环境变量的Path和JAVA_HOME保持一致
4.
经测试 struts.xml这句 <constant name="struts.objectFactory" value="spring"></constant>
可有可无,struts默认是使用spring装载bean的。