严智鑫
2024-04-09 95db3e96a9465f137fdf16540e0c5985752894c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
server:
  port: 8080
  servlet:
   context-path: /mesModuleTools
 
spring:
  datasource:
    dynamic:
      primary: user_info #设置默认的数据源或者数据源组,默认值即为master
      strict: false #设置严格模式,默认false不启动. 启动后在未匹配到指定数据源时候回抛出异常,不启动会使用默认数据源.
      datasource:
        user_info:
          url: jdbc:mysql://10.153.19.150:3306/erp_user_info?serverTimezone=GMT%2b8
          username: root
          password: beibo.123/
          driver-class-name: com.mysql.cj.jdbc.Driver