解决springdatajpa设置默认值保存null无效的问题

在实体类上面加这个两个注解即可。

@DynamicUpdate
@DynamicInsert
原文地址:https://www.cnblogs.com/super-hu/p/12746533.html