在struts2中,如果Action实现了prepare接口. struts2 Action中方法的执行顺序

在struts2中,如果Action实现了prepare接口.

struts2 Action中方法的执行顺序为:



     prepare方法名方法  --> prepare方法 --> validate方法名方法 --> 方法;



如有方法名checkCi方法,则执行顺序为:



    prepareCheckCi --> prepare --> validateCheckCi --> checkCi

猜你喜欢

转载自pengzhaocheng16.iteye.com/blog/1930718