hi team,
I am a bit new to Spring framework. In my application,we are using servlet-context.xml to create the beans required for DB. For some reason say at some time if the DB was down, or some other bean creation erred out, I am getting a Servlet.init() error and the complete stack trace is being shown at the
jsp context.
Is it possible to catch these exceptions and throw a minimalist error saying, something went wrong, so that the end user isn't being shown all the stack trace.
I have tried using the controllerAdvice annotation as suggested by everyone, But if the sping application was itself unable to bootstrap, how will these annotations help me out?
stuck on this since two dats
Any insights will be deeply appreciated.
Regards,
jeangrey