Announcement Announcement Module
No announcement yet.
Setting error pages & overriding default configured beans Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting error pages & overriding default configured beans

    Hi -
    I am trying to define and error page to handle 404, 500, and what not in a spring boot application. Following the sample on, I see define a servletContainer bean, which SHOULD in theory take precedence over that defined through @EnableAutoConfiguration.

    When I debug the application, that is not what is happening. The auto configured servletContainer bean is stepping over my defined one and thus the default settings.

    My application is here

    I'd appreciate if you can point me in the right direction.


    NB: Also, on another note, specifying "server.port" in gets respected, but doing the same in my custom servletContainer is not. What am I doing wrong?

  • #2
    We are currently in the process of moving to for our forums. If you're still having this issue please consider asking it again at using the #spring-boot tag. If you do post it there, please reply here with the link.