从2.x版本迁移到3.16.0版本时会遇到问题。在骆驼泉3.x版本中,<handled><constant>true</constant></handled>的替代方案是什么?
在更高版本中,处理和继续操作的替代方案是什么?
发布于 2022-04-12 16:21:12
handled标记是而不是不推荐的,在与用于生成Spring的XSD模式的模型类对应的类OnExceptionDefinition和最新XSD模式中可以看到。
与Spring中的代码等效的是:
<onException>
<!-- the exception is full qualified names as plain strings -->
<!-- there can be more just add a 2nd, 3rd exception element (unbounded) -->
<exception>java. Lang. Throwable</exception>
<!-- mark this as handled -->
<handled>
<constant>true</constant>
</handled>
...
</onException>有关使用Spring处理错误的详细信息,请参阅提交给文件。
https://stackoverflow.com/questions/71829719
复制相似问题