Strust2默认是多例的,但是Spring默认是单例的,在进行Spring+Strust2整合的时候,就需要把Spring管理的action指定为多例模式,只需要在action上面加上@Scope("prototype")

例如:

//...
@Scope("prototype")
public class UserAction {
//... 
public String execute(){
//...

}
}
//...
 

 

相关文章:

  • 2021-10-14
  • 2021-06-19
  • 2022-12-23
  • 2022-01-07
  • 2021-09-28
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2021-07-16
  • 2021-12-29
  • 2021-08-25
  • 2022-12-23
  • 2022-01-05
相关资源
相似解决方案