摘要: 1.springboot默认发生异常会跳转到白页 2.自定义错误页 我们在templates/error路径下新增404.html和5xxhtml 注意使用 thymeleaf 时候,所有的html文件要添加命名空间 发生404错误时,我们就会自动跳转到404.html 发生5xx错误时,我们自动跳 阅读全文
posted @ 2022-03-03 23:02 qwedfrgh 阅读(61) 评论(0) 推荐(0)