在做全局异常时候出现了依赖冲突
原依赖用以下这个依赖
org.springframework spring-web5.2.5.RELEASE compile
在用下边这个方法时继承Exception
MethodArgumentNotValidException
这个方法继承
public class MethodArgumentNotValidException extends Exception {
------------------------------
}
去掉这个依赖却继承BindException
public class MethodArgumentNotValidException extends BindException {
-------------------------------
}
他们两个依赖是有什么优先级吗?或者是版本冲突?
org.springframework.boot spring-boot-starter-web2.4.12 org.springframework spring-web5.2.5.RELEASE compile
有大神来解答吗?感谢大佬们



