我使用select
語句檢索了List<SomeBean>
。現在,我試圖insert
一樣。這個插入語句工作正常;但是,我無法插入空值。該表沒有任何NOT NULL
限制。以下異常引發:在數據庫中插入null
org.springframework.jdbc.UncategorizedSQLException: Error setting null for parameter #4 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: Invalid column type
我怎樣才能在MyBatis的插入空值?
如果您沒有設置它在你的'insert'聲明???值會發生什麼! – 2013-04-24 11:58:07