mybatis存儲null到oracle報錯問題

    Error setting null parameter. Most JDBC drivers require that the JdbcType must be specified for all nullable parameters. Cause: java.sql.SQLException: 無效的列類型:……

在對應的mapper中,設置jdbcType

}如:

#{name,jdbcType=VARCHAR}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章