zoukankan      html  css  js  c++  java
  • java.lang.IllegalArgumentException: Could not resolve placeholder

    当在配置文件中写了两处:

    <bean id="propertyConfigurer"
              class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
            <property name="location" value="classpath:jdbc.properties" />
        </bean>
    

    就会找不到第一个配置文件中的属性…
    引入多个,应该这么写:

      <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
            <property name="locations">
                <list>
                    <value>classpath:test.properties</value>
                    <value>classpath:jdbc.properties</value>
                </list>
            </property>
        </bean>
    
    世界上所有的不公平都是由于当事人能力不足造成的.
  • 相关阅读:
    [转] Spring
    测试公式
    lexicalized Parsing
    MLN Alchemy
    Pedro domingos
    MLE & MAP
    Learning
    ProbCog mlnlearn的探索
    MLN 讨论 —— inference
    Mathjax与LaTex公式简介
  • 原文地址:https://www.cnblogs.com/javayida/p/13346880.html
Copyright © 2011-2022 走看看