码迷,mamicode.com
首页 > 移动开发 > 详细

ApplicationContext.xml配置文件

时间:2014-09-12 17:14:33      阅读:336      评论:0      收藏:0      [点我收藏+]

标签:applicationcontext.x

<?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:jee="http://www.springframework.org/schema/jee"
	xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
	http://www.springframework.org/schema/tx 
	http://www.springframework.org/schema/tx/spring-tx-3.0.xsd 
	http://www.springframework.org/schema/jee 
	http://www.springframework.org/schema/jee/spring-jee-3.0.xsd 
	http://www.springframework.org/schema/context 
	http://www.springframework.org/schema/context/spring-context-3.0.xsd"
	default-lazy-init="true">


如果要加入aop等其他配置加上就行,例如加上aop的

 xmlns:aop="http://www.springframework.org/schema/aop"
 http://www.springframework.org/schema/aop 
 http://www.springframework.org/schema/aop/spring-aop-3.0.xsd 

default-lazy-init延迟加载,必须设为true,不然巨卡。

ApplicationContext.xml配置文件

标签:applicationcontext.x

原文地址:http://blog.csdn.net/benjamin_whx/article/details/39231295

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!