spring 管理struts2的一个问题

自己的一个不认真,导致浪费 了一天半个的时间,来惩杹,

<bean id="renyuan" class="com.ait.rdframe.sys.personnel.action.personAction" scope="prototype">
  <property name="personservice" ref="personIservice"></property>
  <property name="IsystemService"  ref="actionManage"></property>
 </bean>

<!-- scope="prototype"没写的问题,项目中对一个表的增删该操作是用一个action,这个action有add,update,delete,save这些方法, 添加和修改是共用一个页面,当页面得到id时代表进行的修改操作,反之是添加操作。因为在配置spring的bean是忘了写scope="prototype"

action里的数据一直保存 ,这个问题

原文地址:https://www.cnblogs.com/123a/p/2838578.html