由 weblogic 服务器生成Jhipster
并部署在其上的项目。除了限制异常处理之外,一切都在 weblogic 服务器上运行良好。
在tomcat上发生约束异常时正确返回状态错误代码409,但在weblogic上返回状态错误代码500,如下所示,所以我们无法检测到发生了什么错误
with cause = 'weblogic.transaction.RollbackException: setRollbackOnly called on transaction' and exception = 'JTA transaction unexpectedly rolled back (maybe due to a timeout); nested exception is weblogic.transaction.RollbackException: setRollbackOnly called on transaction'