解决1、在catch的时候 自定义抛出了异常。然后就可能会这样。把抛出的异常改为RuntimeException。
解决2、加参数
参考https://blog.csdn.net/paul342/article/details/52330609