参考:Confusion: @NotNull vs @Column(nullable = false) 转载于:https://www.cnblogs.com/drizzlewithwind/p/6160549.html