摘要:
spring 需要在类上加载spring配置 如下 @RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations="classpath*:spring/spring-applic... 阅读全文
摘要:
UUID 好处就是本地生成,不要基于数据库来了;不好之处就是,UUID 太长了、占用空间大,作为主键性能太差了;更重要的是,UUID 不具有有序性,会导致 B+ 树索引在写的时候有过多的随机写操作(连续的 ID 可以产生部分顺序写),还有,由于在写的时候不能产... 阅读全文