- 链接地址:https://blog.csdn.net/nineya_com/article/details/110749407
- 链接标题:Springboot修改默认异常处理_errorcontroller 在新版springboot中被修改-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:7981
文章浏览阅读783次。1. 继承BasicErrorController继承BasicErrorController可实现修改默认的全局异常处理,复写error方法修改Rest请求的修改,复写errorHtml实现修改错误处理视图。package com.nineya.user.controller;import com.nineya.tool.restful.ResponseResult;import org.springframework.boot.autoconfigure.web.ServerPropertie_errorcontroller 在新版springboot中被修改
版权声明:本文发布于特牛生活网 内容均来源于互联网 如有侵权联系删除