spring的el表达式,这里就是取里配置文件里面的database.xxxx的值

解决方案 »

  1.   

    那database从哪里出来的呢?
    你spring的xml里面的<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
            <property name="location">
                <value>classpath:properties/dataBase.properties</value>
            </property>
        </bean> 
    这里就已经把dataBase.properties配置文件交给spring管理了,${database.xxxxx}这些就是从这里面取到的,更多的看人家spring的开发文档