spring 的scope="prototype"
2017-04-11 09:48
375 查看
悲剧 惨剧 喜剧,心情极其复杂,搞了一天的问题,spring2.5 hibernate3.2 struts2.1 整合的框架,遇到一个见鬼的问题,就是登陆的时候去访问action ,第一次访问的时候没问题,以后再访问就报错 说找不到指定的action名称,后来 在csdn找到答案原来在spring配置action的bean 那里要加 scope="prototype"
加了后是这样| <bean id="sQwfyAction" class="com.ssh2.action.QwfyAction" scope="prototype">
<property name="qys">
<ref bean="Qwfyservice" />
</property>
</bean>
加了后是这样| <bean id="sQwfyAction" class="com.ssh2.action.QwfyAction" scope="prototype">
<property name="qys">
<ref bean="Qwfyservice" />
</property>
</bean>
相关文章推荐
- spring scope="prototype"注意点
- spring scope="prototype" 和scope="singleton"区分
- Spring配置<bean>时加scope="prototype"的原因
- Spring中scope="prototype"属性的作用
- struts+spring action应配置为scope="prototype"
- spring scope="prototype" 学习笔记
- 关于Spring的destroy-method和scope="prototype"不能共存问题
- spring bean scope="prototype" 有状态bean 无状态bean
- spring scope="prototype" 和scope="singleton"区分
- Struts2+hibernate+spring 配置文件中scope="prototype"的作用
- struts+spring action应配置为scope="prototype"
- spring action scope="prototype"
- struts2.0中spring配置文件中action的属性 scope="prototype"
- spring注解中@Scope("prototype")的重要性
- struts2.0中spring配置文件中action的属性 scope="prototype" .
- spring <bean scope="prototype">探讨
- struts+spring action应配置为scope="prototype"
- Spring注解@Scope("prototype") Spring在Action上面注解@Scope("prototype")
- spring&nbsp;scope=&quot;prototype&quot;&amp;nb…
- Spring 注解 @Scope("prototype") 的作用