如果要通过spring 来实例化action ,action bean必须添加scpoe="prototype" 属性,
因为struts2自己默认是多例的,而bean配置默认是单例,会出现多线程问题
<bean id="testAction" class="cn.test.TestAction" scope="prototype">
</bean>
<action name="testList" method="index" class="testAction">
<result name="success" type="tiles">testList</result>
</action>