亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

連接池用${}取不到值

連接池用${}取不到值

fenkapian 2017-05-07 22:23:39
如果是手寫驅動類、URL、用戶名這些,不用${}取jdbc.properties文件里的值的話,就可以,怎么回事啊<?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:context="http://www.springframework.org/schema/context"? ? ?xmlns:aop="http://www.springframework.org/schema/aop"? ? ?xmlns:tx="http://www.springframework.org/schema/tx"? ? ?xsi:schemaLocation="http://www.springframework.org/schema/beans? ? ?http://www.springframework.org/schema/beans/spring-beans.xsd? ? ?http://www.springframework.org/schema/context? ? ?http://www.springframework.org/schema/context/spring-context.xsd? ? ?http://www.springframework.org/schema/aop? ? ?http://www.springframework.org/schema/aop/spring-aop.xsd? ? ?http://www.springframework.org/schema/tx? ? ?http://www.springframework.org/schema/tx/spring-tx.xsd">? ? ?? ? ?<context:property-placeholder location="classpath:jdbc.properties"/>? ? ?? ? ?<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">? ? ? <property name="driverClass" value="${driver}"/>? ? ? ? <property name="jdbcUrl" value="${url}"/>? ? ? ? <property name="user" value="${username}"/>? ? ? ? <property name="password" value="${password}"/>? ? ?</bean>
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 1383 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號