SpringBoot2.x使用Data-JPA系列二
摘要:
Id 策略 @GeneratedValue:主键的产生策略,通过strategy属性指定 主键产生策略通过GenerationType来指定。GenerationType是一个枚举,它定义了主键产生策略的类型。 1、AUTO 自动选择一个最适合底层数据库的主键生成策略。如MySQL会自动对应auto 阅读全文
posted @ 2020-09-25 16:40 没刮胡子 阅读(374) 评论(0) 推荐(0)
浙公网安备 33010602011771号