spring applicat ionContext.xml读取propertites参数


<context:property-placeholder location="classpath:dataSource.properties" /> 

<property name="url" value="${url}" /> 
<property name="username" value="${username}" /> 
<property name="password" value="${password}" />

你可能感兴趣的:(spring)