0

I have a standalone spring application where one of my bean implementing UncaughtExceptionHandler and in main method calling Thread.setUncaughtExceptionHandler. Is there any spring support for global error handling, I found a few options for spring MVC but not for Non-MVC / standalone.

Sankalp
  • 2,030
  • 7
  • 30
  • 41
  • 1
    There is non provided for non-mvc application. . if it is standand alone application how you want to handle the error very specific. it is not probably like redirecting to standard error page. you may to device your own approach – kuhajeyan Oct 23 '16 at 17:13

1 Answers1

2

Spring does not support global exception handler for standalone / non-mvc. As explained here you may need to implement it by defining jointpoint and pointcuts and enable pointcut for any "*Exception".

Surya1
  • 36
  • 1