---
title: "4）spring 的 applicationContext.xml "
author: "qinya06"
date: "2010-09-08T23:07:46Z"
tags: ["JDBC", "MySQL", "Spring", "XML", "配置管理"]
categories: ["企业架构"]
slug: "4-spring-applicationcontext-xml"
draft: false
lastmod: "2010-09-08T23:09:39Z"
id: 758930
url: "https://qinya.iteye.com/blog/758930"
---

spring 的 applicationContext.xml \[code="java"] jdbc.properties ${jdbc.driverClass} ${jdbc.url} ${jdbc.user} ${jdbc.password} ${jdbc.initialPoolSize} ${jdbc.minPoolSize} ${jdbc.maxPoolSize} PROPAGATION\_REQUIRED PROPAGATION\_REQUIRED PROPAGATION\_REQUIRED PROPAGATION\_REQUIRED,readOnly classpath:sqlMapConfig.xml \[/code] 5) 数据源参数配置文件：jdbc.properties 【说明 ：按照你的具体情况来配置】： ------------ \[quote] jdbc.driverClass=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/springdemo?useUnicode=true&characterEncoding=utf-8 jdbc.user=root jdbc.password=root jdbc.initialPoolSize=1 jdbc.minPoolSize=1 jdbc.maxPoolSize=10\[/quote]------------