摘要:
转 : https://blog.csdn.net/Dongguabai/article/details/110510818 @ControllerAdvice 全局异常响应页面和 JSON 我这里页面以 Thymeleaf 为例子,相关配置: spring: thymeleaf: cache: f 阅读全文
摘要:
使用 ResponsStatusExceptionResolver类,注解 @ResponseStatus(value=HttpStatus.FORBIDDEN,reason="测试错误提示") 返回异常 1.此注解用在类上 写异常类: package com.cc8w.exception; imp 阅读全文