spring action scope="prototype"
2012-05-31 16:49
387 查看
spring中配置的bean 默认scope 是单例模式,之后重复使用同一对象,由于web请求是多线程并发的,所以action对象有可能被多个线程修改,而且struts2 要求每次次访问都对应不同的action,所以action的bean要配置scope="prototype",以保证每次请求都能创建一个新的action
相关文章推荐
- struts+spring action应配置为scope="prototype"
- struts2.0中spring配置文件中action的属性 scope="prototype" .
- struts+spring action应配置为scope="prototype"
- Spring注解@Scope("prototype") Spring在Action上面注解@Scope("prototype")
- struts+spring action应配置为scope="prototype"
- struts2.0中spring配置文件中action的属性 scope="prototype"
- struts+spring action应配置为scope="prototype"
- struts+spring action应配置为scope="prototype"
- struts+spring action应配置为scope="prototype"
- spring scope="prototype" 学习笔记
- spring scope="prototype"注意点
- spring scope="prototype" 和scope="singleton"区分
- Spring的scope="prototype"属性
- Spring中scope="prototype"属性的作用
- struts+spring action应配置为scope="prototype"
- spring bean scope="prototype" 有状态bean 无状态bean
- Struts2+hibernate+spring 配置文件中scope="prototype"的作用
- struts+spring action应配置为scope="prototype"
- spring scope="prototype" 和scope="singleton"区分
- spring scope="prototype"&nb…