# spring

Grzegorz Medias

09/25/2023, 7:38 PM
Hey guys. I have problem to set custom exceptions handlers for Spring with suspend controller. Controller Advice is not working as for sync. It's working for Mono but not suspend. It should not be the same? Maybe you can find any example? SpringBoot 3.1.+ Kotlin 1.9.+


09/25/2023, 7:42 PM
Please check with latest
, if it does not work please create an issue on with a reproducer (repository or attached archive). I am travelling so expect a bit of delay, but I will have a look.
👍 1

Grzegorz Medias

09/26/2023, 7:25 AM
I checked and Global Exception handler is not resolved properly by Spring. Adnotation ExceptionHandler is working if method is under Controller. But not working with Global Advice I can create issue for that
shit.. found the issue. And it was mine fault. package name of Controller was mistaken and Spring does not see it an even run with Application. I based on ITests which got mock there, so haven't realize this issue ^^ sorry for that. silly issue. It's working