![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
文章平均质量分 86
「已注销」
这个作者很懒,什么都没留下…
展开
-
SpringMVC Controller 返回值可选类型
SpringMVC Controller 返回值的可选类型 spring mvc 支持如下的返回方式:ModelAndView, Model, ModelMap, Map,View, String, void。 ModelAndView @RequestMapping("/hello") public ModelAndView helloWorld() {原创 2017-01-10 15:11:51 · 314 阅读 · 0 评论 -
spring aop
7.AOP 1).什么是AOP · AOP : a. Aspect Oriented Programming; 面向切面编程 b. 两种实现方式:预编译方式(AspectJ) 运行期动态代理方式(JDK动态代理、CGLib动态代理)(SpringAOP、JbossAOP) c. 目的:实现程序原创 2018-07-29 17:05:13 · 197 阅读 · 0 评论 -
spring IOC(2016年)
1.注入:设值注入(property) 构造注入(constructor-arg); 2.bean的生命周期:定义(XML定义),初始化(context启动时加载bean,初始化) , 使用(bean容器中取出实例),销毁(bean容器停止时销毁由bean容器创建的实例) 初始化: 1)实现InitializingBean接口中的方法;原创 2018-07-29 17:51:14 · 186 阅读 · 0 评论