调试struts2两种方法之配置插件和使用Debugging Interceptor
来源:互联网 发布:厂品商设计软件 编辑:程序博客网 时间:2024/06/11 18:18
方法1:配置插件
首先把struts2包中自带的struts2-config-browser-plugin-2.3.20.jar加到classpath路径下.
启动tomcat,在浏览器中直接输入http://localhost:8060/eshop/config-browser/index.action,这里的地址根据自己的实际情况来,红色部分不变。它会跳到一个展示所有包及包下action页面.如下图
这里可以点击每一个action,查看它的具体信息,比如action所拥有的参数,验证器有哪些等。还可以看到struts2所有可以配置的常量,比如:struts.action.extension =action,,
2.使用debug拦截器.
在任何一下请求地址后面加上debug=browser,如http://localhost:8060/eshop/userManage/userQueryAction?debug=browser,就可以以表格的形式看到该action的所有参数信息,如下图:
0 0
- 调试struts2两种方法之配置插件和使用Debugging Interceptor
- 【Struts2】:Interceptor的配置和使用
- Struts2.X的Interceptor的两种实现方法
- struts2 Interceptor配置与使用
- struts2 Interceptor配置与使用 .
- struts2 Interceptor配置与使用
- struts2拦截器interceptor的三种配置方法
- struts2拦截器interceptor的三种配置方法
- struts2拦截器interceptor的三种配置方法
- struts2拦截器interceptor的三种配置方法
- struts2 -- interceptor(如何配置stuts2.xml之Interceptor)
- struts2 -- interceptor(如何配置Interceptor)
- struts2 -- interceptor(如何配置Interceptor)
- struts2 -- interceptor(如何配置Interceptor)
- struts2 -- interceptor(如何配置Interceptor)
- struts2 -- interceptor(如何配置Interceptor)
- struts2 -- interceptor(如何配置Interceptor)
- struts2+jsp filter和Interceptor配置
- SDK manager 中 Done loading packages 问题
- Codeforces Round #288 (Div. 2) D. Tanya and Password
- MongoDB入门(三)-Java操作MongoDB
- 小寒假第二天总结
- CF 161D Distance in Tree 树形DP
- 调试struts2两种方法之配置插件和使用Debugging Interceptor
- MySQL安装之后没有MySQL数据库的原因
- Android学习笔记 - 杂
- golang todo实例
- hdu 5014 亦或的性质
- PrinterWriter 类入门
- Path Sum
- POJ 1087 A Plug for UNIX(最大流dinic)
- Object 类入门