Spring 3
文章平均质量分 77
c_feers
这个作者很懒,什么都没留下…
展开
-
spring多文件的几种配置方法
spring多配置文件在web.xml中的几种配置方式: 往往在实际的开发当中会涉及到许多的spring配置文件。那么这些配置文件应该如何在web.xml中配置呢? <1>: <context-param> <param-name>contextConfigLocation</param-name> <param-value>...原创 2010-08-26 15:49:35 · 73 阅读 · 0 评论 -
spring加载多个配置文件的方法
1、 在Struts2.0 中加载多个 struts.xml ,用<include file="........"></include> 例如: <struts> <include file="com/test/user/action/user_struts.xml"></include&a原创 2010-08-26 15:51:01 · 67 阅读 · 0 评论 -
详解Spring的 applicationContext.xml文件
<!-- 头文件,主要注意一下编码 --><?xml version="1.0" encoding="UTF-8"?><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"><bean原创 2010-08-26 15:54:04 · 87 阅读 · 0 评论 -
关于Spring中Commons Validator的使用说明
关于Spring中Commons Validator的使用说明 spring的validate验证需要两个bean(ValidatorFactory、BeanValidator)及两xml文件(validator-rules.xml、validation.xml)的支持,ValidatorFactory用于制造BeanValidator,后者则是在程序中执行校验的控制bean。Va...原创 2010-09-02 15:24:45 · 74 阅读 · 0 评论 -
Spring AOP 2.0 研究
我们用Hello的例子来诠释Spring AOP 2.0 的特性。 Hello Java代码 public interface Hello { void sayHelloBefore(); void sayHelloAfter(); void sayHelloAround(); } ...原创 2010-09-02 15:28:21 · 76 阅读 · 0 评论