MYSQL

# 配置详解

参数 说明 必传 默认值
source 类型 DATA_BASE
sourceName 数据源名称
sourceAttributes 额外参数
smqtt:
  sources: # 配置数据源sources
	- source: DATA_BASE # 数据库配置
      sourceName: dataBase
      sourceAttributes:
        jdbcUrl: jdbc:mysql://localhost:3306/smqtt
        username: root
        password: 123
        dataSource-cachePrepStmts: true
        dataSource-prepStmtCacheSize: 250
        dataSource-prepStmtCacheSqlLimit: 2048
        dataSource-useServerPrepStmts: true
        dataSource-useLocalSessionState: true
        dataSource-rewriteBatchedStatements: true
        dataSource-cacheResultSetMetadata: true
        dataSource-cacheServerConfiguration: true
        dataSource-elideSetAutoCommits: true
        dataSource-maintainTimeStats: false
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

支持原生MYQL所有参数

Last Updated: 12/10/2021, 5:44:48 AM