摘要: 阿里技术专家详解 DDD 系列- Domain Primitive 导读:对于一个架构师来说,在软件开发中如何降低系统复杂度是一个永恒的挑战,无论是 94 年 GoF 的 Design Patterns , 99 年的 Martin Fowler 的 Refactoring , 02 年的 P of 阅读全文
posted @ 2021-01-11 22:40 JaxYoun 阅读(837) 评论(0) 推荐(0) 编辑
摘要: 开四个线程,异步+并行地从远端获取结果,然后解析,放入集合 List<Integer> priceList = new ArrayList(4); CompletableFuture.supplyAsync(() -> this.getPriceFromRemote()).thenAccept(re 阅读全文
posted @ 2021-01-11 22:16 JaxYoun 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 以传入枚举作为if条件为例: 外层对象:dto 枚举类:TypeEnum <if test = "dto.typeEnum != @com.yang.enumate.TypeEnum.FIRST"> 阅读全文
posted @ 2021-01-11 22:01 JaxYoun 阅读(621) 评论(0) 推荐(0) 编辑
摘要: 1、复制表结构及数据到新表 CREATE TABLE 新表 SELECT * FROM 旧表 这种方法会将oldtable中所有的内容都拷贝过来,当然我们可以用delete from newtable;来删除。 不过这种方法的一个最不好的地方就是新表中没有了旧表的primary key、Extra( 阅读全文
posted @ 2021-01-11 21:52 JaxYoun 阅读(15054) 评论(0) 推荐(1) 编辑