quarkus 提供异常处理程序吗?
我想要像 Spring 的 ControllerAdvice 这样的东西。
https://www.baeldung.com/exception-handling-for-rest-with-spring https://www.baeldung.com/exception-handling-for-rest-with-spring
Quarkus/RESTEasy 世界中的等效项称为ExceptionMapper
.
例如参见这里:https://howtodoinjava.com/resteasy/resteasy-exceptionmapper-example/ https://howtodoinjava.com/resteasy/resteasy-exceptionmapper-example/ .
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)