Hey guys. I have problem to set custom exceptions ...
# spring
g
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.+
s
Please check with latest
3.1.4
, if it does not work please create an issue on https://github.com/spring-projects/spring-framework with a reproducer (repository or attached archive). I am travelling so expect a bit of delay, but I will have a look.
👍 1
g
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