We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
清空数据库(mysql)时需要用 TRUNCATE TABLE,这样主键也会重置
Sorry, something went wrong.
No branches or pull requests
在打开 spring boot 中的 application.properties 中加入配置: spring.jpa.show-sql=true,查看sql,果然插入了null值,使得数据库配置的默认值失效了。
随后通过搜索引擎得知,在实体类上加入配置,@DynamicInsert、@DynamicUpdate ,使其忽略掉空值的注入即可
The text was updated successfully, but these errors were encountered: