springboot2 异常处理 404 500 处理 错误页面

springboot 在 BasicErrorController 类里实现了默认的错误处理。只需要将对应的错误提示文件放到 resources/static/error 目录,支持模糊匹配,如: static/error/4xx.html static/error/5xx.html static/error/404.html static/error/error.html 运行项目,然后输入不存
相关文章
相关标签/搜索