• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown

spring boot /error mapping

Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all.

From the spring docs:

27.1.8 Error Handling
Spring Boot provides an /error mapping by default that
handles all errors in a sensible way, and it is registered as a
‘global’ error page in the servlet container. For machine clients it
will produce a JSON response with details of the error, the HTTP
status and the exception message. For browser clients there is a
‘whitelabel’ error view that renders the same data in HTML
format (to customize it just add a View that resolves to

My question is why is there a request mapping to /error ?

I can add a page called error.ftl (I'm using freemarker) and it will use that one as the error page but I don't know what the request mapping is for.

    Bookmark Topic Watch Topic
  • New Topic