Announcement Announcement Module
Collapse
No announcement yet.
Setting error pages & overriding default configured beans Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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 https://github.com/spring-projects/s...let-containers, 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 https://github.com/berinle/spring-boot-sample

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

    Thanks.

    NB: Also, on another note, specifying "server.port" in application.properties 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 stackoverflow.com for our forums. If you're still having this issue please consider asking it again at http://stackoverflow.com using the #spring-boot tag. If you do post it there, please reply here with the link.

    Thanks!

    Comment

    Working...
    X