天天看点

如何关闭Struts2的webconsole.html

出于安全目的,在禁用了devMode之后,仍然不希望其他人员看到webconsole.html页面,则可以直接删除webconsole.html 的源文件,

它的位置存在于: 我们手工删除 struts2-core-*.jar\org\apache\struts2\interceptor\debugging\ 文件夹下的browser.ftl、console.ftl、 webconsole.html、webconsole.js 即可 。删除完毕后,当我们再次访问,将会出现404页面。

如何关闭Struts2的webconsole.html