記一次更新Mysql表記錄時,PreparedStatement.setTimestamp拋出NullPointerException的問題

今天同事在做mysql和seata的整合測試,出現的一個問題是更新了hibernate的實體,在保存時方法PreparedStatement.setTimestamp竟然拋出了空指針異常?!!然後該問題在未集成seata時是不存在的。 經過排查,定位到問題是PreparedStatement.setTimestamp方法中的this.parameterMetaData.metadata爲null,
相關文章
相關標籤/搜索