在spring中${}获取.properties中的值:
<bean id="随便"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath*:config/jdbc.properties</value>
<value>classpath*:config/hibernate.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>
该bean对象的ID可以使任意值,但是在同一个web应用中不能重复,负责也会出现类似Could not resolve placeholder 'jdbcdriver.ClassName'等异常