在以前的帖子中,我们了解了 [hello world 应用](//howtodoinjava.com/struts-2/struts-2-hello-world-with-annotations/"Struts 2 hello world with annotations")和[设置 struts 2 应用](//howtodoinjava.com/struts-2/how-to-correctly-set-result-path-in-struts-2/"How to correctly set result path in struts 2")的结果路径。 现在,在这篇文章中,我将举一个使用注释的自定义或用户定义的拦截器配置示例。
在以前的帖子中,我们了解了 [hello world 应用](//howtodoinjava.com/struts-2/struts-2-hello-world-with-annotations/"Struts2 hello world with annotations")和[设置 Struts2 应用](//howtodoinjava.com/struts-2/how-to-correctly-set-result-path-in-struts-2/"How to correctly set result path in Struts2")的结果路径。 现在,在这篇文章中,我将举一个使用注释的自定义或用户定义的拦截器配置示例。
**Important**: Please note that Struts2 comes with many ready-made interceptor implementations, So make sure you really need to create your own interceptor or something can work for you.
**Important**: Please note that Struts2 comes with many ready-made interceptor implementations, So make sure you really need to create your own interceptor or something can work for you.