spring  的配置文件

引入外部的property文件的两种方法

<!-- 引入jdbc配置文件    方法一 -->
<bean >
<list>
<!--要是有多个配置文件,只需在这里继续添加即可 -->
<value>classpath:properties/*.properties</value>
</list>
</property>
</bean>

 

<!-- 引入jdbc配置文件    方法二 -->

<context:property-placeholder location="classpath:jdbc.properties" />

 

相关文章:

  • 2021-10-06
  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2021-10-21
  • 2022-02-27
  • 2022-12-23
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2021-08-06
  • 2021-09-21
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案