246ba
2018-08-18 20:47
@ExceptionHandler(value = RuntimeException.class) 正确 @ExceptionHandler(value = AreaException.class) 错误
自定义异常类如下
package com.imooc.demo.exception;
public class AreaException extends RuntimeException {
public AreaException(String message) {
super(message);
}
public AreaException(String message, Throwable cause) {
super(message, cause);
}
}不知道哪块的问题,求大神解答
在哪个层抛的这个异常看下代码逻辑呗
SpringBoot+MyBatis搭建迷你小程序
92167 学习 · 657 问题
相似问题