Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ErrorPage class deprecated in Spring Boot 1.4

In my working Spring Boot 1.4 application, I currently have

import org.springframework.boot.context.embedded.ErrorPage;

According to the documentation, as of 1.4 this class is deprecated in favor of org.springframework.boot.web.ErrorPage

However, when I change the code to

import org.springframework.boot.web.ErrorPage;

I get an error The import org.springframework.boot.web.ErrorPage cannot be resolved

How can this be fixed?

like image 513
user1408140 Avatar asked Apr 26 '26 06:04

user1408140


1 Answers

The javdoc's wrong. The correct replacement is org.springframework.boot.web.servlet.ErrorPage. I've opened an issue so that we can fix the javadoc. Thanks for letting us know.

like image 170
Andy Wilkinson Avatar answered Apr 28 '26 23:04

Andy Wilkinson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!