Spring
文章平均质量分 78
liyisong2008
这个作者很懒,什么都没留下…
展开
-
spring中bean的基本xml配置
在spring容器内拼凑bean叫作装配。装配bean的时候,你是在告诉容器,需要哪些bean,以及容器如何使用依赖注入将它们配合在一起。 理论上,bean装配可以从任何资源获得,包括属性文件,关系数据库等,但xml是最常见的spring 应用系统配置源。Spring中的几种容器都支持使用XML装配bean,包括: XMLBeanFactory , ClassPath原创 2015-01-20 11:35:13 · 4969 阅读 · 0 评论 -
Spring mvc interceptor配置拦截器
xml代码: http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.spr原创 2015-01-20 11:46:49 · 43495 阅读 · 0 评论 -
java SpringAOP拦截Controller,Service实现日志管理(自定义注解的方式)
做日志管理最好的是Aop,有的人也喜欢用拦截器。都可以,在此我重点介绍我的实现方式。 Aop有的人说拦截不到Controller。有的人说想拦AnnotationMethodHandlerAdapter截到Controller必须得拦截org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter。 首原创 2015-01-20 11:33:47 · 18574 阅读 · 7 评论