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