봄 정례 화 조치

spring 을 통 해 action 을 예화 하려 면 action bean 은 scpoe = "prototype" 속성 을 추가 해 야 합 니 다.
struts 2 자신의 기본 값 은 여러 예 이 고, 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>

좋은 웹페이지 즐겨찾기