--@GeneratedValue(strategy = GenerationType.IDENTITY) 生成auto_increment主鍵,僅用于支持自增字段數據庫
--@GeneratedValue默認主鍵生成策略為native,網上查的Hibernate中identity是MySQL對應的自增、sequence對應oracle的自增序列
--Springboot2.0,Hibernate創建的表默認myisam,需要innodb可通過spring.jpa.database-platform: org.hibernate.dialect.MySQL5InnoDBDialect 設置。
--@GeneratedValue默認主鍵生成策略為native,網上查的Hibernate中identity是MySQL對應的自增、sequence對應oracle的自增序列
--Springboot2.0,Hibernate創建的表默認myisam,需要innodb可通過spring.jpa.database-platform: org.hibernate.dialect.MySQL5InnoDBDialect 設置。
2018-03-24
最新回答 / 慕UI5017193
https://jingyan.baidu.com/article/36d6ed1f62e9821bcf4883af.html看這個你就知道自己怎么設置智能提示了
2018-03-24