hello i work on spring boot app using Kotlin lang ...
# server
a
hello i work on spring boot app using Kotlin lang if the HTTP method is GET and i request the endpoint with POST method it throw server error, so how to catch this error and throw runtime error instead. thank's
u
The solution depends, but you are looking for something like this https://www.baeldung.com/exception-handling-for-rest-with-spring if you are not using webflux
a
Thank you i will try and notify you.
a
I came across the same issues with Micronaut framework, Micronaut provides an Error Response Processor interface, You can implement this class to override the behaviour