Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在使用 JSP/servlets 时遇到错误时,会显示如下页面:
尽管足以跟踪大多数问题,但我想知道是否有一些组件可以添加到您的 Web 应用程序中以提供更多调试信息(例如:显示会话数据的 Django 调试页面/调试工具栏之类的东西,执行的 SQL 查询等)。
我知道 Java 和 Python 是两个截然不同的世界,甚至这两个工具都是 Django 特有的。但是Java中有一些工具与我之前提到的目的相似吗?
在 web.xml 中,您可以将错误代码映射到表单中的特定页面:
<error-page> <error-code>500</error-code> <location>/errors/servererror.jsp</location> </error-page>
并直接在jsp页面中打印调试信息。