Spring在Action上的注解
@Controller是struts2作为接入层的注解,表示将action作为控制类。@Scope("prototype")表示每接受一个请求就创建一个Action对象
@Scope("singleton") 单例模式 表示每一次的请求共用一个Action对象
Spring在Action上的注解
@Controller是struts2作为接入层的注解,表示将action作为控制类。@Scope("prototype")表示每接受一个请求就创建一个Action对象
@Scope("singleton") 单例模式 表示每一次的请求共用一个Action对象