![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
分布式主键
o_瓜田李下_o
这个作者很懒,什么都没留下…
展开
-
springboot jpa 分布式主键
springboot jpa分布式主键 ***************************** 相关注解 @Target({ElementType.PACKAGE, ElementType.TYPE, ElementType.METHOD, ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) @Repeatabl...原创 2019-09-10 21:55:41 · 605 阅读 · 0 评论 -
springboot mybatis 分布式主键
mybatis分布式主键 ******************************** pojo层 @Table(name = "person") public class Person implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY, ge...原创 2019-09-15 20:58:31 · 561 阅读 · 0 评论 -
springboot mybatis plus 分布式主键
mybatisplus分布式主键 ******************************************** 主键枚举类 public enum IdType { AUTO(0), //使用数据库自增主键 NONE(1), //如果不设置主键,用长整形数字自动填充 INPUT(...原创 2019-09-17 20:49:47 · 1404 阅读 · 0 评论