springboot ErrorController getErrorPath() 版本变迁
springboot ErrorController getErrorPath() 版本变迁
org.springframework.boot.web.servlet.error.ErrorController.getErrorPath() 方法在 Spring Boot 2.5.x 版本中已被移除。
在 Spring Boot 2.5.x 版本中,ErrorController 接口的 getErrorPath() 方法已被移除。
这意味着如果你在使用 Spring Boot 2.5.x 或更高版本,
并且你的项目中依赖了仍然调用此方法的库(如 Spring Cloud Netflix Zuul 的某些版本),
你将会遇到 java.lang.NoSuchMethodError 错误。
https://docs.spring.io/spring-boot/docs/2.6.13/api/org/springframework/boot/autoconfigure/web/servlet/error/package-summary.html