Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify error page #1169

Open
eric-5512 opened this issue Aug 8, 2021 · 2 comments
Open

Specify error page #1169

eric-5512 opened this issue Aug 8, 2021 · 2 comments

Comments

@eric-5512
Copy link

When I visit an error page, I jump to the 404 page. But it is not the page I specified. How to specify an error page?

Current page

image

@eric-5512
Copy link
Author

hello?

@larsgrefer
Copy link
Member

That depends on whether you are also using Spring Web MVC and how you are deploying your application

If you use Spring Web MVC you should have a look at this: https://docs.spring.io/spring-boot/docs/2.6.x/reference/htmlsingle/#web.servlet.spring-mvc.error-handling

If you don't use it, you can use this: https://docs.spring.io/spring-boot/docs/2.6.x/reference/htmlsingle/#web.servlet.spring-mvc.error-handling.error-pages-without-spring-mvc

And if you are using war-deployment, there is an additional chapter: https://docs.spring.io/spring-boot/docs/2.6.x/reference/htmlsingle/#web.servlet.spring-mvc.error-handling.in-a-war-deployment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants