输出错误信息
在error頁面加以下代碼,之后檢查網頁源代碼就會出現錯誤信息
(URL,Exception是后臺傳過來的參數)
<div><div th:utext="'<!--'" th:remove="tag"></div><div th:utext="'Failed Request URL : ' + ${url}" th:remove="tag"></div><div th:utext="'Exception message : ' + ${exception.message}" th:remove="tag"></div><ul th:remove="tag"><li th:each="st : ${exception.stackTrace}" th:remove="tag"><span th:utext="${st}" th:remove="tag"></span></li></ul><div th:utext="'-->'" th:remove="tag"></div>
</div>
總結
- 上一篇: Win32 程序运行原理
- 下一篇: 牛客网--牛牛的闹钟