Spring Boot 实现ErrorController接口处理40四、500等错误页面

在项目中咱们遇到404找不到的错误、或者500服务器错误都须要配置相应的页面给用户一个友好的提示,而在Spring Boot中咱们须要如何设置。php 咱们须要实现ErrorController接口,重写handleError方法。java package com.ciyou.edu.controller import org.springframework.boot.autoconfigure
相关文章
相关标签/搜索