我在weblogic的應用中的web.xml中添加了如下
<error-page>
<error-code>404</error-code>
<location>/errors/404.html</location>
</error-page>
當應用名正確,例如正確的訪問路徑http://xx.xx.xx.xx:8080/default/login.jsp,default為應用名稱
當http://xx.xx.xx.xx:8080/default/log時,是會顯示自定義的404頁面
但是當我輸入錯誤的應用名,比如http://xx.xx.xx.xx:8080/error時,依然顯示weblogic的404頁面
是不是可以修改weblogic的根目錄的某個檔案,比如像tomcat中修改conf下的web.xml一樣,在應用名輸入錯誤的情況下,顯示自定義的404頁面
急求大佬幫助!!!
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/25390.html
標籤:應用服務器
