Spring Boot 自定义错误页

首先在控制器中创建异常的请求  @Controller public class HelloWorldController { @RequestMapping("/hello") public String hello() { int i = 1/0; return hello; } } 一、简单配置    1. 在 resource->static下创建 err
相关文章
相关标签/搜索