摘要: <span>Spring入门:Spring AOP使用讲解</span> AOP是Aspect Oriented Programming的缩写,意思是:面向切面编程,它是通过预编译方式和运行期动态代理实现程序功能的统一维护的一种技术。 可以认为AOP是对OOP(Object Oriented Pro 阅读全文
posted @ 2020-11-10 17:02 harbuor 阅读(73) 评论(0) 推荐(0)
摘要: Spring 基于观察者模式,实现了自身的事件机制,由三部分组成: 事件 ApplicationEvent:通过继承它,实现自定义事件。另外,通过它的 source 属性可以获取事件源,timestamp 属性可以获得发生时间。 事件发布者 ApplicationEventPublisher:通过它 阅读全文
posted @ 2020-11-10 11:40 harbuor 阅读(103) 评论(0) 推荐(0)
摘要: public enum Grade { A_10_90(90, 100, "A"), B_90_80(80, 90, "B"), C_80_60(60, 80, "C"), D_60_0(0, 60, "D"), OTHER(-1, -1, "E"); private int start; priv 阅读全文
posted @ 2020-11-09 17:13 harbuor 阅读(201) 评论(0) 推荐(0)
摘要: 1、定义抽象类 package com.polaris.design; /** @author :shi @date :Created in 2020/8/18 20:15 @description: @modified By: */ public abstract class GeneralCha 阅读全文
posted @ 2020-11-09 17:10 harbuor 阅读(439) 评论(0) 推荐(0)