Metrics
0
Watch 2.6k Star 5.2k Fork 2.6k

ThinkGem / JeeSite 4.xJavaAGPL-3.0

多数据源

Open
zyf2  Created at

jeesite.yml里配置两个数据源,修改之后还是找原来的数据源。注:两个数据源在两台不同的电脑上

4601_konbluesky total 2 participants

Comments (1)

4601_konbluesky
erimer 2019-05-10 10:11

dataSourceNames 后配数据源名,下面跟着数据源

  dataSourceNames: ds2
#  
  # 多数据源配置:ds2
  ds2:
    type: mysql
    driver: com.mysql.jdbc.Driver
    url: jdbc:mysql://127.0.0.1:3310/ds2?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
    username: root
    password: 123456
    testSql: SELECT 1
    encrypt:
      username: false
      password: true
    pool:
      init: 1
      minIdle: 3
      maxActive: 20

Sign in and comment

Assignee
Labels
Not set
Project
Milestone
Branch
Scheduled start
Not set
Scheduled end
Not set
Top level
Priority

Help Search