设置application-db.yml

spring:    
  datasource:
    name: druidDataSource
    type: com.alibaba.druid.pool.DruidDataSource
    username: xx
    password: xxxxxxxxx
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://127.0.0.1:3706/dev?useSSL=true&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai


    # SqlServer (SqlServer DB)
    # driver-class-name: net.sourceforge.jtds.jdbc.Driver
    # url: jdbc:jtds:sqlserver://ZL_SERVER_D:1433/qjb
    # validationQuery: SELECT 1A04536DED47F4716B44B18D2CD3A2521
    # 达梦¦(DM DB)
    # driver-class-name: dm.jdbc.driver.DmDriver
    # url: jdbc:dm://127.0.0.1:5236/DMSERVER
    # validationQuery: SELECT 1
    # 金仓 (jc DB)
    # driver-class-name=com.kingbase8.Driver
    # url=jdbc\:kingbase8\://127.0.0.1\:54321/QJB
    # validationQuery=SELECT 1
    # #Oracle (Devlopment DB)
    #username: xx
    #password: xxxxxxxx  
    #driver-class-name: oracle.jdbc.OracleDriver
    #url: jdbc:oracle:thin:@192.168.1.10:1521:XE

作者:texbox  创建时间:2022-12-15 23:32
最后编辑:admin  更新时间:2024-10-17 08:28