@ControllerAdvice annotated class is not catching the exception thrown in the service layer

前端 未结 0 334
野趣味
野趣味 2021-01-22 07:25

I\'m trying to centralize the error handling in my spring boot app. Currently i\'m only handling one potential exception (NoSuchElementException), this is the controller advice:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题