Announcement Announcement Module
Collapse
No announcement yet.
Using two PlaceholderConfigurer Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using two PlaceholderConfigurer

    Hi,

    I try to use a PropertyPlaceholderConfigurerin another PropertyPlaceholderConfigurer, but i can't get it work.

    Here are the definitions of my 2 PropertyPlaceholderConfigurer:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    
    <beans>
      <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="placeholderPrefix" value="$cf{"/>
        <property name="placeholderSuffix" value="}"/>
        <property name="location" value="classpath:configPacifica.properties"/>
      </bean>
    </beans>
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    
    <beans>
      <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="location" value="classpath:$cf{configMailSender}"/>
        <property name="placeholderPrefix" value="$ms{"/>
        <property name="placeholderSuffix" value="}"/>
      </bean>
    </beans>
    The reference to the first PropertyPlaceholderConfigurer in the "location" of the second PropertyPlaceholderConfigurer (using classpath:$cf{configMailSender}) is not resolved.

    Any clue on how to do this?

    Thanks in advance.

    Enguerran
    Last edited by enguerran; Jan 19th, 2010, 04:34 AM.

  • #2
    Hi My Firend,

    PropertyPlaceHolder dependency doesnt works.I have spend a lot of time in it and have used everything lazy,depends etc...

    -Kartik

    Comment

    Working...
    X