首页>代码>基于Spring Boot+Layui+mybatis开发垃圾分类管理系统>/garbage-collection-project/src/main/java/com/garbage/demo/common/BaseExceptionHandler.java
package com.garbage.demo.common; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.RestControllerAdvice; @RestControllerAdvice @Slf4j public class BaseExceptionHandler { @ExceptionHandler(value = Exception.class) public Result exception(Exception e){ log.error("异常信息:{}", e.getMessage()); return Result.getFailure().setData(e.getMessage()); } }
最近下载更多
yiipheartbeat LV2
4月19日
sun丶孙 LV8
4月6日
黎子寒 LV1
4月2日
zhb666 LV8
3月12日
duon12 LV1
2023年9月25日
mjh1142736 LV2
2023年9月18日
微信网友_6482083022819328 LV9
2023年6月24日
include LV8
2023年6月20日
VEVOPP LV2
2023年5月29日
lvdong2023 LV10
2023年5月17日
最近浏览更多
微信网友_6956978011000832 LV2
4月19日
yiipheartbeat LV2
4月19日
sun丶孙 LV8
4月6日
zolscy LV12
4月5日
玖零定制问题修复 LV34
4月4日
黎子寒 LV1
4月2日
微信网友_6927932988952576 LV12
3月29日
zhb666 LV8
3月12日
Nergard1
3月7日
暂无贡献等级
段贤锐 LV8
2月29日