<bean 
        class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">
            <list>
                <value>classpath:jdbc.properties</value>
                <value>classpath:sysconfig.properties</value>
            </list>
        </property>
 </bean>

<bean />
</bean>

这样之后可以在其中使用properties中的属性,通过${}的方式引入。

相关文章:

  • 2021-07-15
  • 2022-02-19
  • 2021-10-08
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-08
  • 2021-11-04
  • 2022-12-23
  • 2022-01-17
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案