solon.app:
  name: gen
server:
  port: 6969


# sqlite3
#LOCAL_DB: ${user.home}/gen.db
gen.db1:
  url: "jdbc:sqlite:"
  driverClassName: org.sqlite.JDBC
  userName:
  password:

# mysql
dbms:
  enable: false
#  host: localhost:3306
#  database: gen
#  username: root
#  password: root

gen.db2:
  url: jdbc:mysql://${dbms.host:localhost:3306}/${dbms.database:gen}?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
  driverClassName: com.mysql.cj.jdbc.Driver
  userName: ${dbms.username:gen}
  password: ${dbms.password:}

# 配置数据源对应的 mybatis 信息（要与 DataSource bean 的名字对上）
mybatis.db1:
  mappers:        #支持包名 或 类名（大写开头 或 *）或 xml（.xml结尾）//支持 ** 或 * 占位符
    - "com.gitee.gen.mapper.*" #这个表达式同上效果
    - "classpath:mybatis/**/*.xml"
  configuration:  #扩展配置（要与 Configuration 类的属性一一对应）
    cacheEnabled: false
    mapperVerifyEnabled: true #如果为 true，则要求所有 mapper 有 @Mapper 主解
    mapUnderscoreToCamelCase: true

gen:
  format-xml: ${GEN_FORMAT_XML:true}
  db-name: ${GEN_DBNAME:gen}

# log
solon.logging.appender:
  console:
    level: INFO
    enable: true #是否启用
  file:
    name: "logs/${solon.app.name}"
    level: INFO
    enable: false #是否启用
    extension: ".log"   #v2.2.18 后支持（例：.log, .log.gz, .log.zip）
    maxFileSize: "10 MB"
    maxHistory: "7"
  cloud:
    level: INFO
    enable: false #是否启用


# 2.0.3新增
# 连接方式管理, {HOST},{PORT},{DB_NAME} 表示占位符
connect:
  1:
    name: MySQL
    driver: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://{HOST}:{PORT}/{DB_NAME}?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
    serviceName: com.gitee.gen.gen.mysql.MySqlService
  2:
    name: Oracle
    driver: oracle.jdbc.driver.OracleDriver
    url: jdbc:oracle:thin:@{HOST}:{PORT}{DB_NAME}
    serviceName: com.gitee.gen.gen.oracle.OracleService
  3:
    name: "SQL Server"
    driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
    url: jdbc:sqlserver://{HOST}:{PORT};DatabaseName={DB_NAME};trustServerCertificate=true
    serviceName: com.gitee.gen.gen.sqlserver.SqlServerService
  4:
    name: PostgreSQL
    driver: org.postgresql.Driver
    url: jdbc:postgresql://{HOST}:{PORT}/{DB_NAME}
    serviceName: com.gitee.gen.gen.postgresql.PostgreSqlService
  5:
    name: "达梦"
    driver: dm.jdbc.driver.DmDriver
    url: jdbc:dm://{HOST}:{PORT}/{DB_NAME}
    serviceName: com.gitee.gen.gen.dm.DmService

