随笔分类 - 设计模式
摘要:懒汉式 public class Singleton { private static Singleton instance; private Singleton() { } public static synchronized Singleton getInstance() { if (insta
阅读全文
摘要:在Spring下的策略模式 定义一个注解类Module @Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface Module { /** * 属于哪个模块 */ Str
阅读全文

浙公网安备 33010602011771号