利用thymeleaf建立404頁面

templates下創建error文件夾 建各類code的html頁面,404.html 403.html,本身編寫html內容便可。html 我用了shiro後,未受權頁面是這樣設置的 shiroFilterFactoryBean.setUnauthorizedUrl(「/403」);java 可是並無返回到403頁面 後來加了統一權限控制就行了web import javax.servlet.
相關文章
相關標籤/搜索