
spring
文章平均质量分 54
zhongjay
这个作者很懒,什么都没留下…
展开
-
Spring AOP使用整理:各种通知类型的介绍
转载自:http://chenjumin.iteye.com/blog/364948 一、基础接口和类 1、Person接口的源码 Java代码 public interface Person { public void info(); public void show(String message); } ...原创 2013-12-22 14:51:39 · 139 阅读 · 0 评论 -
Spring AOP xml配置
转自:http://pandonix.iteye.com/blog/336873 此前对于AOP的使用仅限于声明式事务,除此之外在实际开发中也没有遇到过与之相关的问题。最近项目中遇到了以下几点需求,仔细思考之后,觉得采用AOP 来解决。一方面是为了以更加灵活的方式来解决问题,另一方面是借此机会深入学习Spring AOP相关的内容。本文是权当本人的自己AOP学习笔记,以下需求不用AOP肯...原创 2013-12-22 15:05:53 · 109 阅读 · 0 评论 -
spring-aop
一、什么是 AOP。 AOP(Aspect Orient Programming) 也就是面向切面编程。可以这样理解,面向对象编程(OOP)是从静态角度考虑程序结构,面向切面编程(AOP)是从动态角度考虑程序运行过程。二、AOP 的作用。常常通过 AOP 来处理一些具有横切性质的系统性服务,如事物管理、安全检查、缓存、对象池管理等,AOP 已经成为一种非常常用的解决方案。三、AOP 的实...原创 2013-12-22 16:08:04 · 120 阅读 · 0 评论 -
Spring3 MVC 深入研究
http://blog.chinaunix.net/uid-20586655-id-3000946.html原创 2013-08-02 14:02:46 · 83 阅读 · 0 评论 -
春天的故事-Spring Security3十五日研究
http://www.blogjava.net/SpartaYew/archive/2011/06/15/350630.html原创 2013-08-09 14:37:41 · 107 阅读 · 0 评论 -
ServiceLocator
一、目的:在项目中可以通过beanName获得其实例。 import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeansException; import org.spri...原创 2015-06-19 09:58:50 · 324 阅读 · 0 评论 -
spring-batch - 从csv读取数据放入数据库
spring-batch 应用:从csv读取数据写入到数据库 一、spring配置文件 applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns...原创 2017-03-12 18:20:33 · 782 阅读 · 0 评论 -
spring-batch - 从数据库分页读取数据然后输出
一、pom文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocat...原创 2017-03-13 20:57:29 · 3389 阅读 · 0 评论