使用xml文件映射<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
...
- 13:37
- 浏览 (178)
- 评论 (0)
因为工作组网站开发需要,做了一个功能比较简单的缓存工具,使用Filter和HttpServletResponseWrapper进行缓存。能够通过cacheConfig.xml配置文件指定需要缓存的页面,缓存类型,自动刷新缓存的时间。 把源文件导入到项目中 在web.xml中注册Filter<filter>
<filter-name>pageCacheFilter</filter-name>
<filter-class>cn.iceway.pagecache.PageCacheFilter</filter-class ...
- 15:17
- 浏览 (264)
- 评论 (0)







评论排行榜