<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>yybean.com Java编程 Web开发 Ajax技术 Spring框架 Struts2框架 Hibernate技术 在线文档 &#187; Spring</title>
	<atom:link href="http://www.yybean.com/category/spring/feed" rel="self" type="application/rss+xml" />
	<link>http://www.yybean.com</link>
	<description>一个java web精品小站...</description>
	<lastBuildDate>Thu, 05 Jan 2012 07:11:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>使用spring-modules-0.9实现注解缓存</title>
		<link>http://www.yybean.com/using-spring-modules-0-9-to-achieve-annotation-cache</link>
		<comments>http://www.yybean.com/using-spring-modules-0-9-to-achieve-annotation-cache#comments</comments>
		<pubDate>Fri, 21 May 2010 03:16:06 +0000</pubDate>
		<dc:creator>yybean</dc:creator>
				<category><![CDATA[Spring]]></category>
		<category><![CDATA[框架整合]]></category>
		<category><![CDATA[缓存]]></category>
		<category><![CDATA[springmodules]]></category>
		<category><![CDATA[注解]]></category>
		<category><![CDATA[注解驱动]]></category>

		<guid isPermaLink="false">http://www.yybean.com/using-spring-modules-0-9-to-achieve-annotation-cache</guid>
		<description><![CDATA[&#160; 

关于spring实现ehcache有很多方法，很多都是利用aop来实现，我认为采用注解的方式更灵活，配置也更简洁。下面就是我利用spring-modules-0.9实现的注解缓存。 

配置文件如下：

<span class="readmore"><a href="http://www.yybean.com/using-spring-modules-0-9-to-achieve-annotation-cache" title="使用spring-modules-0.9实现注解缓存">阅读全文——共1779字</a></span>]]></description>
		<wfw:commentRss>http://www.yybean.com/using-spring-modules-0-9-to-achieve-annotation-cache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>基于springmodules的缓存方案</title>
		<link>http://www.yybean.com/caching-scheme-based-on-springmodules</link>
		<comments>http://www.yybean.com/caching-scheme-based-on-springmodules#comments</comments>
		<pubDate>Fri, 21 May 2010 03:15:19 +0000</pubDate>
		<dc:creator>yybean</dc:creator>
				<category><![CDATA[Spring]]></category>
		<category><![CDATA[框架整合]]></category>
		<category><![CDATA[缓存]]></category>
		<category><![CDATA[springmodules]]></category>
		<category><![CDATA[方案]]></category>
		<category><![CDATA[注解]]></category>

		<guid isPermaLink="false">http://www.yybean.com/caching-scheme-based-on-springmodules</guid>
		<description><![CDATA[简介&#160;&#160;&#160;&#160; 

&#160;&#160;&#160;&#160;&#160; 通常在系统开发中，必不可少的要使用到缓存(Cache)，如用户信息、字典信息都会使用缓存来提高性能；但是如何使用好缓存是个需要深入研究的话题，缓存方案没有通用性，针对不同的应用层面，缓存的设计通常也是千差万别的！这里只是介绍了一种比较轻量级、无侵入的缓存方案，该方案基于Spring+SpringModules。 

目的

<span class="readmore"><a href="http://www.yybean.com/caching-scheme-based-on-springmodules" title="基于springmodules的缓存方案">阅读全文——共3469字</a></span>]]></description>
		<wfw:commentRss>http://www.yybean.com/caching-scheme-based-on-springmodules/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>用Spring提供的JUnit框架扩展对DAO或Service层进行单元测试</title>
		<link>http://www.yybean.com/junit-with-spring-framework-provided-by-the-expansion-of-the-dao-or-the-service-layer-unit-test</link>
		<comments>http://www.yybean.com/junit-with-spring-framework-provided-by-the-expansion-of-the-dao-or-the-service-layer-unit-test#comments</comments>
		<pubDate>Fri, 21 May 2010 03:12:40 +0000</pubDate>
		<dc:creator>yybean</dc:creator>
				<category><![CDATA[Spring]]></category>
		<category><![CDATA[测试]]></category>
		<category><![CDATA[spring mock]]></category>
		<category><![CDATA[spring单元测试]]></category>
		<category><![CDATA[入门]]></category>
		<category><![CDATA[单元测试]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://www.yybean.com/junit-with-spring-framework-provided-by-the-expansion-of-the-dao-or-the-service-layer-unit-test</guid>
		<description><![CDATA[单元测试及其背后的组件易测性是贯穿Spring应用的核心理念之一。一直以来，与测试独立的Java对象相比，由于J2EE Web组件必须运行于某种容器，或者还要与基于HTTP的Web环境交互，所以测试它们是一项艰巨而复杂的任务。

Spring Mock包提供了一些扩展自JUnit框架的测试基类，这些基类简化了对依赖注射和事务管理的单元测试。

下面的内容来自csdn的一篇文章，算是helloworld教程吧。

<span class="readmore"><a href="http://www.yybean.com/junit-with-spring-framework-provided-by-the-expansion-of-the-dao-or-the-service-layer-unit-test" title="用Spring提供的JUnit框架扩展对DAO或Service层进行单元测试">阅读全文——共3708字</a></span>]]></description>
		<wfw:commentRss>http://www.yybean.com/junit-with-spring-framework-provided-by-the-expansion-of-the-dao-or-the-service-layer-unit-test/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用Spring测试框架进行集成测试</title>
		<link>http://www.yybean.com/testing-framework-to-use-spring-integration-testing</link>
		<comments>http://www.yybean.com/testing-framework-to-use-spring-integration-testing#comments</comments>
		<pubDate>Fri, 21 May 2010 03:11:39 +0000</pubDate>
		<dc:creator>yybean</dc:creator>
				<category><![CDATA[Spring]]></category>
		<category><![CDATA[测试]]></category>
		<category><![CDATA[spring mock]]></category>
		<category><![CDATA[spring2.5]]></category>
		<category><![CDATA[spring单元测试]]></category>
		<category><![CDATA[集成测试]]></category>

		<guid isPermaLink="false">http://www.yybean.com/testing-framework-to-use-spring-integration-testing</guid>
		<description><![CDATA[一、使用Spring2.5 TestContext框架

参阅：http://www.ibm.com/developerworks/cn/java/j-lo-spring25-test/

Spring 2.5 TestContext 测试框架，是一个全新的基于注解的测试框架，为 Spring 推荐使用该测试框架。

<span class="readmore"><a href="http://www.yybean.com/testing-framework-to-use-spring-integration-testing" title="利用Spring测试框架进行集成测试">阅读全文——共4339字</a></span>]]></description>
		<wfw:commentRss>http://www.yybean.com/testing-framework-to-use-spring-integration-testing/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>spring数据源配置详解</title>
		<link>http://www.yybean.com/spring-data-source-configuration-xiangjie</link>
		<comments>http://www.yybean.com/spring-data-source-configuration-xiangjie#comments</comments>
		<pubDate>Fri, 21 May 2010 03:10:38 +0000</pubDate>
		<dc:creator>yybean</dc:creator>
				<category><![CDATA[Spring]]></category>
		<category><![CDATA[spring 数据源]]></category>
		<category><![CDATA[spring数据源]]></category>
		<category><![CDATA[Spring数据源配置]]></category>
		<category><![CDATA[spring获取数据源]]></category>
		<category><![CDATA[spring配置数据源]]></category>

		<guid isPermaLink="false">http://www.yybean.com/spring-data-source-configuration-xiangjie</guid>
		<description><![CDATA[spring数据源配置一般分 spring容器自带连接池、项目中创建连接池、服务器创建连接池三种

一、spring容器自带连接池

&#160; Spring本身也提供了一个简单的数据源实现类DriverManagerDataSource ，它位于org.springframework.jdbc.datasource包中。这个类实现了javax.sql.DataSource接口，但 它并没有提供池化连接的机制，每次调用getConnection()获取新连接时，只是简单地创建一个新的连接。因此，这个数据源类比较适合在单元测试 或简单的独立应用中使用，因为它不需要额外的依赖类。    &#160;&#160;&#160;&#160; 下面，我们来看一下DriverManagerDataSource的简单使用：

<span class="readmore"><a href="http://www.yybean.com/spring-data-source-configuration-xiangjie" title="spring数据源配置详解">阅读全文——共6900字</a></span>]]></description>
		<wfw:commentRss>http://www.yybean.com/spring-data-source-configuration-xiangjie/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSessionInViewFilter作用及配置</title>
		<link>http://www.yybean.com/opensessioninviewfilter-role-and-configuration</link>
		<comments>http://www.yybean.com/opensessioninviewfilter-role-and-configuration#comments</comments>
		<pubDate>Fri, 21 May 2010 03:09:38 +0000</pubDate>
		<dc:creator>yybean</dc:creator>
				<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[框架整合]]></category>
		<category><![CDATA[opensessioninviewfilter]]></category>
		<category><![CDATA[opensessioninviewfilter作用]]></category>
		<category><![CDATA[Write operations are not allowed in read-only mode]]></category>

		<guid isPermaLink="false">http://www.yybean.com/opensessioninviewfilter-role-and-configuration</guid>
		<description><![CDATA[一、作用

Spring为我们解决Hibernate的Session的关闭与开启问题。    Hibernate 允许对关联对象、属性进行延迟加载，但是必须保证延迟加载的操作限于同一个 Hibernate Session 范围之内进行。如果 Service 层返回一个启用了延迟加载功能的领域对象给 Web 层，当 Web 层访问到那些需要延迟加载的数据时，由于加载领域对象的 Hibernate Session 已经关闭，这些导致延迟加载数据的访问异常 

(eg： org.hibernate.LazyInitializationException:(LazyInitializationException.java:42)      - failed to lazily initialize a collection of role: cn.easyjava.bean.product.ProductType.childtypes, no session or session was closed       org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: cn.easyjava.bean.product.ProductType.childtypes, no session or session was closed)

<span class="readmore"><a href="http://www.yybean.com/opensessioninviewfilter-role-and-configuration" title="OpenSessionInViewFilter作用及配置">阅读全文——共6297字</a></span>]]></description>
		<wfw:commentRss>http://www.yybean.com/opensessioninviewfilter-role-and-configuration/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Spring Hibernate整合要点之JPA</title>
		<link>http://www.yybean.com/spring-hibernate-integration-of-the-main-points-of-the-jpa</link>
		<comments>http://www.yybean.com/spring-hibernate-integration-of-the-main-points-of-the-jpa#comments</comments>
		<pubDate>Fri, 21 May 2010 03:07:40 +0000</pubDate>
		<dc:creator>yybean</dc:creator>
				<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[框架整合]]></category>
		<category><![CDATA[hibernate jpa教程]]></category>
		<category><![CDATA[hibernate jpa配置]]></category>
		<category><![CDATA[jpa hibernate]]></category>
		<category><![CDATA[spring hibernate]]></category>
		<category><![CDATA[SSH整合]]></category>

		<guid isPermaLink="false">http://www.yybean.com/spring-hibernate-integration-of-the-main-points-of-the-jpa</guid>
		<description><![CDATA[一、依赖包





<span class="readmore"><a href="http://www.yybean.com/spring-hibernate-integration-of-the-main-points-of-the-jpa" title="Spring Hibernate整合要点之JPA">阅读全文——共5759字</a></span>]]></description>
		<wfw:commentRss>http://www.yybean.com/spring-hibernate-integration-of-the-main-points-of-the-jpa/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>整合Struts2与Spring</title>
		<link>http://www.yybean.com/struts2-and-spring-integration</link>
		<comments>http://www.yybean.com/struts2-and-spring-integration#comments</comments>
		<pubDate>Fri, 21 May 2010 03:04:32 +0000</pubDate>
		<dc:creator>yybean</dc:creator>
				<category><![CDATA[Spring]]></category>
		<category><![CDATA[Struts]]></category>
		<category><![CDATA[框架整合]]></category>
		<category><![CDATA[struts2 spring整合]]></category>
		<category><![CDATA[struts2 spring结合]]></category>
		<category><![CDATA[struts2 spring配置]]></category>
		<category><![CDATA[struts2 spring集成]]></category>

		<guid isPermaLink="false">http://www.yybean.com/struts2-and-spring-integration</guid>
		<description><![CDATA[一、增加所需的jar包

需要的JAR文件为：Spring和Struts2框架本身需要的JAR文件以及他们所依赖的JAR文件，比如commons-logging.jar等等，另外还需要Struts2发布包中的struts2-spring-plugin-x.xx.jar。



<span class="readmore"><a href="http://www.yybean.com/struts2-and-spring-integration" title="整合Struts2与Spring">阅读全文——共2553字</a></span>]]></description>
		<wfw:commentRss>http://www.yybean.com/struts2-and-spring-integration/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

