spring-data-redis工程
摘要:官方文档:http://docs.spring.io/spring-data/data-redis/docs/current/reference/html/redis.htmlThe Spring Data Redis (or SDR) framework makes it easy to writ...
阅读全文
posted @
2014-07-14 19:46
一天不进步,就是退步
阅读(515)
推荐(0)
实例详解 EJB 中的六大事务传播属性--转
摘要:前言事务 (Transaction) 是访问并可能更新数据库中各种数据项的一个程序执行单元 (unit)。在关系数据库中,一个事务可以是一条或一组 SQL 语句,甚至整个程序。它有通常被称为 ACID 的原子性(Atomicity)、一致性(Consistency)、隔离性(Isolation)、持...
阅读全文
posted @
2014-07-09 10:51
一天不进步,就是退步
阅读(785)
推荐(0)
全面分析 Spring 的编程式事务管理及声明式事务管理--转
摘要:开始之前关于本教程本教程将深入讲解 Spring 简单而强大的事务管理功能,包括编程式事务和声明式事务。通过对本教程的学习,您将能够理解 Spring 事务管理的本质,并灵活运用之。先决条件本教程假定您已经掌握了 Java 基础知识,并对 Spring 有一定了解。您还需要具备基本的事务管理的知识,...
阅读全文
posted @
2014-07-09 10:48
一天不进步,就是退步
阅读(371)
推荐(0)
Spring 事务管理高级应用难点剖析--转
摘要:第 1 部分http://www.ibm.com/search/csass/search/?q=%E4%BA%8B%E5%8A%A1&sn=dw&lang=zh&cc=CN&en=utf&hpp=20&dws=cndw&lo=zh概述Spring 最成功,最吸引人的地方莫过于轻量级的声明式事务管理,...
阅读全文
posted @
2014-07-09 09:40
一天不进步,就是退步
阅读(9440)
推荐(1)
使用 Acegi 保护 Java 应用程序
摘要:第 1 部分: 架构概览和安全过滤器Acegi Security System 是一种功能强大并易于使用的替代性方案,使您不必再为 Java 企业应用程序编写大量的安全代码。虽然它专门针对使用 Spring 框架编写的应用程序,但是任何类型的 Java 应用程序都没有理由不去使用 Acegi。这份共...
阅读全文
posted @
2014-07-01 17:47
一天不进步,就是退步
阅读(3188)
推荐(1)
Spring/Hibernate Improved SQL Logging with log4jdbc---reference
摘要:Hibernate provides SQL logging out of the box, but such logging only shows prepared statements, and not the actual SQL queries sent to the database.It...
阅读全文
posted @
2014-05-30 14:37
一天不进步,就是退步
阅读(956)
推荐(0)
Performance Tuning of Spring/Hibernate Applications---reference
摘要:http://java.dzone.com/articles/performance-tuningFor most typical Spring/Hibernate enterprise applications, the application performance depends almost...
阅读全文
posted @
2014-05-30 14:14
一天不进步,就是退步
阅读(384)
推荐(0)
69 Spring Interview Questions and Answers – The ULTIMATE List--reference
摘要:This is a summary of some of the most important questions concerning the Spring Framework, that you may be asked to answer in an interview or in an in...
阅读全文
posted @
2014-05-06 18:32
一天不进步,就是退步
阅读(1059)
推荐(0)
Pitfalls of the Hibernate Second-Level / Query Caches--reference
摘要:This post will go through how to setup the Hibernate Second-Level and Query caches, how they work and what are their most common pitfalls.The Hibernat...
阅读全文
posted @
2014-05-06 17:11
一天不进步,就是退步
阅读(501)
推荐(0)
Hibernate: Truly Understanding the Second-Level and Query Caches--reference
摘要:I've written multiple articles here at Javalobby on the Hibernate O/R mapping tool, and they are usually met with a large degree of popularity. Hibern...
阅读全文
posted @
2014-05-06 17:10
一天不进步,就是退步
阅读(429)
推荐(0)
FactoryBean的使用--转
摘要:一般情况下,Spring通过反射机制利用bean的class属性指定实现类来实例化bean 。在某些情况下,实例化bean过程比较复杂,如果按照传统的方式,则需要在中提供大量的配置信息,配置方式的灵活性是受限的,这时采用编码的方式可能会得到一个简单的方案。Spring为此提供了一个org.Sprin...
阅读全文
posted @
2014-04-25 11:01
一天不进步,就是退步
阅读(11481)
推荐(1)
OAuth 2 Developers Guide--reference
摘要:IntroductionThis is the user guide for the support forOAuth 2.0. For OAuth 1.0, everything is different, sosee its user guide.This user guide is divid...
阅读全文
posted @
2014-04-22 16:25
一天不进步,就是退步
阅读(3714)
推荐(0)
Step-by-Step XML Free Spring MVC 3 Configuration--reference
摘要:The release of Spring 2.5 reduce the burden of XML by introduction annotation based configuration, but you still needed to bootstrap Spring in XML. However in Servlet 3 and Spring 3.1 we can now drop XML completely and have 100% code based configuration. All thanks to the Servlet 3 specification.So
阅读全文
posted @
2014-04-09 08:45
一天不进步,就是退步
阅读(677)
推荐(0)
Spring Security Hello World Example--reference
摘要:In this tutorial, we will see how we can use Spring security to protect specific resources. This Hello World tutorial will give you a quick start to Spring Security.We will use Spring’s Java Config ( Annotation based approach) to configure the properties instead of XML configuration.Technologies use
阅读全文
posted @
2014-04-09 08:41
一天不进步,就是退步
阅读(4064)
推荐(1)
SimpleUrlHandlerMapping 处理器映射的配置--转
摘要:http://blog.csdn.net/rainier001/article/details/6860491 addEmpController empController
阅读全文
posted @
2014-02-28 09:41
一天不进步,就是退步
阅读(5444)
推荐(0)
深入了解ibatis源码----简单ibatis示例代码
摘要:搭建源码环境:1.创建sql数据库。CREATE TABLE USER_ACCOUNT (USERID INT(3) NOT NULL AUTO_INCREMENT,USERNAME VARCHAR(10) NOT NULL,PASSSWORD VARCHAR(30) NOT NULL,GROUPNAME VARCHAR(10),PRIMARY KEY (USERID));CREATE TABLE USER_ACCOUNT (USERID INT(3) NOT NULL AUTO_INCREMENT,USERNAME VARCHAR(10) NOT NULL,PASSSWORD VARCHAR
阅读全文
posted @
2013-07-10 00:45
一天不进步,就是退步
阅读(586)
推荐(0)
struts深入理解之登录示例的源码跟踪
摘要:废话不多,直接上图:(色泽比较重的是追踪的路径)
阅读全文
posted @
2013-07-01 23:58
一天不进步,就是退步
阅读(190)
推荐(0)
struts深入原理之RequestProcessor与xml
摘要:和配置文件相对应的代码(struts1) public void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // Wrap multipart requests with a special wrapper request = processMultipart(request); // Identify the path component we will use to select a mapping String path
阅读全文
posted @
2013-07-01 01:59
一天不进步,就是退步
阅读(508)
推荐(0)
struts学习
摘要:1.集成tomcat到eclipsehttp://www.eclipsetotale.com/tomcatPlugin.html下载最新的plug后,解压。解压后的文件放到eclipse的plug目录中2.使用struts配置文件web.xml/struts-config.xml中的元素必须按照dtd文档定义顺序书写,即遵从了dtd定义顺序。 常见的错误是顺序错误导致不能识别。例如web.xml文件中 index.jsp 放到servlet或者servlet-mapping前会报错,找不到相应的资源。3.继承struts 的Action必须实现的是execute方法而非perfor...
阅读全文
posted @
2013-07-01 00:09
一天不进步,就是退步
阅读(173)
推荐(0)
hibernate 延迟加载(转载)
摘要:http://blog.csdn.net/xc635960736/article/details/7049863(未找到原始的引文)Hibernae 的延迟加载是一个非常常用的技术,实体的集合属性默认会被延迟加载,实体所关联的实体默认也会被延迟加载。Hibernate 通过这种延迟加载来降低系统的内存开销,从而保证 Hibernate 的运行性能。下面先来剖析 Hibernate 延迟加载的“秘密”。集合属性的延迟加载当 Hibernate 从数据库中初始化某个持久化实体时,该实体的集合属性是否随持久化类一起初始化呢?如果集合属性里包含十万,甚至百万的记录,在初始化持久化实体的同时, 完成所有
阅读全文
posted @
2013-04-02 14:00
一天不进步,就是退步
阅读(217)
推荐(0)