Spring
earl86
写什么爱好 计算机
展开
-
spring-hibernate
原则上尽量要使用spring下载包里lib目录里的jar文件,否则造成sping依赖的jar文件版本不一致,可能产生一些莫名奇妙的异常spring下载包里lib的commons-attributes-compiler.jar如果被拷贝到项目lib目录下也许会导致无法启动tomcat,那么删除该jar文件或者修改jar文件里的META-INF/MANIFEST.MF文件尽量要使用spring下...2008-10-24 21:04:00 · 70 阅读 · 0 评论 -
ApplicationContext.xml
[code="java"] classpath:hibernate.cfg.xml [/code]2008-12-02 16:41:54 · 103 阅读 · 1 评论 -
Pathway from ACEGI to Spring Security 2.0(3)
OK, so now we have setup the database based resources and now the next step is to get Spring Security to read the user details from the database. The examples that come with Spring Security 2.0 shows...2008-11-20 08:56:00 · 71 阅读 · 0 评论 -
Pathway from ACEGI to Spring Security 2.0(2)
The main part of this piece of configuration is the secureResourceFilter, this is a class that implements FilterInvocationDefinitionSource and is called when Spring Security needs to check the Author...2008-11-20 08:55:00 · 59 阅读 · 0 评论 -
Pathway from ACEGI to Spring Security 2.0
Pathway from ACEGI to Spring Security 2.0Submitted by Chris.Baker on Tue, 2008/04/22 - 9:44am.This article outlines how to convert your existing ACEGI based Spring application to use Spring Security...2008-11-20 08:42:00 · 73 阅读 · 0 评论 -
Spring--简单使用quartz实现定时作业
Spring--简单使用quartz实现定时作业 定时批处理作业是J2EE企业应用里很重要的一环,用来在晚间进行财务挂账,数据转存,新闻联播等等操作。 而在Spring里,已经很好的集成了Quartz,简单到像配cron一样,在xml文件里面配一下时间就可以自动执行,不需要写一行代码。Spring对Quartz大刀阔斧的简化堪称范例,Quartz项目组也许可以学习一下。...2008-10-31 14:14:00 · 61 阅读 · 0 评论 -
简化Spring(3)--Controller层
简化Spring(3)--Controller层 作者:江南白衣 Struts与Webwork的扇子请跳过本篇。 MVC不就是把M、V、C分开么?至唯物朴素的做法是两个JSP一个负责View,一个负责Controller,再加一个负责Model的Java Bean,已经可以工作得很好,那时候一切都很简单。 而现在为了一些不是本质的功能,冒出这么多非标准的W...2008-10-31 13:55:00 · 98 阅读 · 0 评论 -
简化Spring(4)--View层
简化Spring(4)--View层 作者:江南白衣 人生像个舞台,请良家少女离开。 同样的,Freemarker和Velocity爱好者请跳过本篇。与弃用webwork而单用Spring MVC Controller接口的理由一样,Freemarker本来是一样好东西,还跨界支持jsp 的taglib,而且得到了WebWork的全力支持,但为了它的非标准化,用户数...2008-10-31 13:55:00 · 64 阅读 · 0 评论 -
简化Spring(2)--Model层
简化Spring(2)--Model层 作者:江南白衣 因为Spring自带的sample离我们的实际项目很远,所以官方一点的model层模式展现就靠Appfuse了。 但Appfuse的model层总共有一个DAO接口、一个DAOImpl类、一个Service接口、一个ServiceImpl类、一个DataObject.....大概只有受惯了虐待的人才会欣然接受吧...2008-10-31 13:54:00 · 85 阅读 · 0 评论 -
简化Spring(1)--配置文件
转自:http://www.blogjava.net/calvin/archive/2005/08/21/10530.html简化Spring(1)--配置文件作者:江南白衣 序 人人都爱Spring加Hibernate。 但Spring MVC+hibernate的Sample如Appfuse的代码却算不得最简洁优美好读,如果在自己的项目中继续发挥我们最擅长的依样画葫芦...2008-10-31 13:53:00 · 61 阅读 · 0 评论 -
基于 MVC 三层架构,Spring 配置文件(08.10.31号)
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://w2008-10-31 11:28:00 · 86 阅读 · 0 评论 -
Spring配置事务在DAO层和业务逻辑层
转自:http://www.blogjava.net/hk2000c/archive/2007/11/01/157508.htmlSpring通过AOP实现声明式事务管理。通常通过TransactionProxyFactoryBean设置Spring事务代理。我们需要一个目标对象包装在事务代理中。这个目标对象一般是一个普通Java对象的bean。当我们定义TransactionProxyFac...2008-10-31 10:39:00 · 387 阅读 · 0 评论 -
用 Hibernate 和 Spring 开发事务持久层(转贴)
用 Hibernate 和 Spring 开发事务持久层(转贴)用 Hibernate 和 Spring 开发事务持久层 作者:Richard 来自:IBM 当您自以为已经了解了所有开发工具时,肯定又会冒出一个新的工具。在本文中,developerWorks 的固定撰稿人 Rick Hightower 用一个真...2008-10-30 20:20:00 · 130 阅读 · 0 评论 -
SpringBeanFactory
SpringBeanFactoryimport org.springframework.beans.factory.xml.XmlBeanDefinitionReader;import org.springframework.context.support.GenericApplicationContext;public class SpringBeanFactory { pri...2008-10-29 17:38:00 · 84 阅读 · 0 评论 -
spring2.0以后声明式事务管理
基于注解式的<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http:2008-10-29 17:35:00 · 83 阅读 · 0 评论 -
在项目中为 Spring Framework 配置 Log4j
创建一个基于 Spring Framework 的项目之后,在使用 JUnit 进行单元测试时,控制台中打印出警告信息:log4j:WARN No appenders could be found for logger (org.springframework.util.ClassUtils).log4j:WARN Please initialize the log4j system prop...2008-10-28 19:15:00 · 76 阅读 · 0 评论 -
spring常见错误之一
Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]解决这个问题的情况之一Spring下可能加入了这个包asm-2.2.3.jar 把它删掉即ssh 阅读全文 类别:Ssh?查看评论...2008-12-13 09:32:00 · 105 阅读 · 0 评论