摘要: 1.线程不安全略2.同步方法单例略3.双重检测public class LazyDoubleCheckSingleton { private static volatile LazyDoubleCheckSingleton instance = null; private LazyDoubleChe 阅读全文
posted @ 2020-02-15 16:21 码里有毒 阅读(124) 评论(0) 推荐(0)
摘要: @Data public class PrototypeSheep implements Cloneable{ private String name; private Integer age; private String color; private PrototypeSheep friend; 阅读全文
posted @ 2020-02-15 15:42 码里有毒 阅读(96) 评论(0) 推荐(0)
摘要: 1.pom.xml 略(参照springboot 整合 mybatis-plus)2.实例化分页组件 /** * Mybatis-plus 提供 分页插件 */ @Bean public PaginationInterceptor paginationInterceptor() { return n 阅读全文
posted @ 2019-11-22 15:01 码里有毒 阅读(339) 评论(0) 推荐(0)