4)spring 的 applicationContext.xml
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]------------