From 3f4bdb8f047211702952e1b296b6e2d5633dca34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=E5=98=89=E9=98=B3?= Date: Wed, 4 Mar 2020 14:40:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=96=B9=E6=B3=95=E6=BA=90?= =?UTF-8?q?=E7=A0=81=E5=88=86=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pattern/behavior/templatemethod/ACourse.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/top/fjy8018/designpattern/pattern/behavior/templatemethod/ACourse.java b/src/main/java/top/fjy8018/designpattern/pattern/behavior/templatemethod/ACourse.java index 8f991bc..58a3096 100644 --- a/src/main/java/top/fjy8018/designpattern/pattern/behavior/templatemethod/ACourse.java +++ b/src/main/java/top/fjy8018/designpattern/pattern/behavior/templatemethod/ACourse.java @@ -1,9 +1,22 @@ package top.fjy8018.designpattern.pattern.behavior.templatemethod; import lombok.extern.slf4j.Slf4j; +import org.apache.ibatis.mapping.MappedStatement; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.util.Collection; /** * 抽象课程 + *

+ * {@link java.util.AbstractList} 提供抽象List实现 + * 例如 {@link java.util.AbstractList#addAll(int, Collection)} 定义通过模板 + * {@link java.util.AbstractMap} 同理 + *

+ * {@link javax.servlet.http.HttpServlet#doGet(HttpServletRequest, HttpServletResponse)} 也是模板定义 + * {@link org.apache.ibatis.executor.BaseExecutor#doUpdate(MappedStatement, Object)} 等方法交由子类实现 + * 例如 {@link org.apache.ibatis.executor.SimpleExecutor#doUpdate(MappedStatement, Object)} * * @author F嘉阳 * @date 2020/3/4 10:59