使用thymeleaf模板时spring boot会自动到
src/main/resources/templates/error/
下查找404、500等页面。
页面命名规则为:错误码.html
如:400.html、404.html
Spring boot全局异常处理
最新推荐文章于 2024-06-03 17:29:15 发布
使用thymeleaf模板时spring boot会自动到
src/main/resources/templates/error/
下查找404、500等页面。
页面命名规则为:错误码.html
如:400.html、404.html