1. jdbcConfig.properties文件中

jdbc.jdbcUrl=jdbc:mysql:///ssm-crud
jdbc.driverClass=com.mysql.jdbc.Driver
jdbc.user=root
jdbc.password=hello

2. spring核心配置文件中

<!-- =========数据源的配置=========-->
<!--引入配置信息 -->
<context:property-placeholder location="classpath:jdbcConfig.properties"/>
<!-- 配置数据源 -->
<bean > </bean>

相关文章:

  • 2021-11-22
  • 2021-11-22
  • 2022-01-08
  • 2021-09-28
  • 2021-09-24
  • 2020-01-17
  • 2022-01-08
  • 2021-11-19
猜你喜欢
  • 2021-12-06
  • 2021-09-07
  • 2022-01-08
  • 2022-01-08
  • 2022-01-07
  • 2022-01-08
  • 2021-12-02
  • 2021-11-22
相关资源
相似解决方案