728x90 반응형 템플릿메소드패턴1 22.03.02_템플릿메소드패턴_자바와스프링에서찾아보는패턴 01.자바 public class TemplateInJava{ public static void main(String[] args){ HttpServlet httpServlet; } } // 사용 public class MyHello extends HttpServlet{ @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException{ super.doGet(req, resp); } protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOEx.. 2022. 3. 3. 이전 1 다음 728x90 반응형