摘要:
一、配置文件 1.由于它继承AbstractAnnotationConfigDispatcherServletInitializer,Servlet容器会把它当做配置文件 1 package spittr.config; 2 3 import org.springframework.web.serv 阅读全文
posted @ 2016-03-04 15:15
shamgod
阅读(820)
评论(0)
推荐(0)
摘要:
一、RequestMapping 1.可以写在方法上或类上,且值可以是数组 1 package spittr.web; 2 3 import static org.springframework.web.bind.annotation.RequestMethod.*; 4 5 import org. 阅读全文
posted @ 2016-03-04 15:03
shamgod
阅读(420)
评论(0)
推荐(0)
摘要:
一、 二、用Java文件配置web application 1. 1 package spittr.config; 2 3 import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServlet 阅读全文
posted @ 2016-03-04 10:52
shamgod
阅读(622)
评论(0)
推荐(0)
摘要:
1.AOP是面向对象编程的有力补充,它可以让你把分散在应用中的公共辅助功能抽取成模块,以灵活配置,减少了重复代码,让类更关注于自身的功能 阅读全文
posted @ 2016-03-04 00:16
shamgod
阅读(143)
评论(0)
推荐(0)
摘要:
一、 1. package concert; public interface CriticismEngine { public String getCriticism(); } 2. 1 package concert; 2 3 public class CriticismEngineImpl i 阅读全文
posted @ 2016-03-04 00:11
shamgod
阅读(703)
评论(1)
推荐(0)

浙公网安备 33010602011771号