mybatis在insert的时候,当对象里面有空值的时候,插入不成功,需要在SqlMapperConfig.xml中进行设置;
<setting name="jdbcTypeForNull" value="NULL" />
org.apache.ibatis.exceptions.PersistenceException:
mybatis在insert的时候,当对象里面有空值的时候,插入不成功,需要在SqlMapperConfig.xml中进行设置;
<setting name="jdbcTypeForNull" value="NULL" />
org.apache.ibatis.exceptions.PersistenceException: