Struts2 中调试的基础技艺

Struts2 中调试的基础技巧?1.设置开发模式为 调试模式在struts-properties 文件中 设置struts.devMode? t

Struts2 中调试的基础技巧

?

1.设置开发模式为 调试模式

在struts-properties 文件中 设置

struts.devMode?= true

2.层架调试包

http://localhost:port/projectname/config-brower/index.action

3.调试标签的使用

<s:debug/>

4.在Url上增加调试命令

在url上面添加?debug=xml或者?debug=console

但是这个是用要求的,首先要在devMode=true的开发模式,同时当前的action必须有debug拦截器