方法注解
@before 表示在Action调用前调用
@after 表示在Action调用后调用
如果要用到上面两个注解,必须在struts.xml中声明,因为/struts-default包中没有进行声明
例子:
@BeforeResult
public String doBefore(){
}
方法注解
@before 表示在Action调用前调用
@after 表示在Action调用后调用
如果要用到上面两个注解,必须在struts.xml中声明,因为/struts-default包中没有进行声明
例子:
@BeforeResult
public String doBefore(){
}
转载于:https://www.cnblogs.com/weidan/archive/2013/01/27/2878655.html