fix:mysql配置缩进调整
parent
cbdc813f69
commit
d159c2b8a7
|
@ -68,36 +68,36 @@ spring:
|
||||||
#=======内置H2数据库连接设置结束==========>>
|
#=======内置H2数据库连接设置结束==========>>
|
||||||
|
|
||||||
# <<==========mysql配置开始==============
|
# <<==========mysql配置开始==============
|
||||||
# jpa:
|
# jpa:
|
||||||
# database: MySQL
|
# database: MySQL
|
||||||
# database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
|
# database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
|
||||||
# show-sql: true
|
# show-sql: true
|
||||||
# hibernate:
|
# hibernate:
|
||||||
# ddl-auto: update
|
# ddl-auto: update
|
||||||
# properties:
|
# properties:
|
||||||
# hibernate:
|
# hibernate:
|
||||||
# format_sql: true
|
# format_sql: true
|
||||||
# datasource:
|
# datasource:
|
||||||
# type: com.zaxxer.hikari.HikariDataSource
|
# type: com.zaxxer.hikari.HikariDataSource
|
||||||
# dynamic:
|
# dynamic:
|
||||||
# hikari:
|
# hikari:
|
||||||
# connection-timeout: 5000
|
# connection-timeout: 5000
|
||||||
# idle-timeout: 30000 # 经过idle-timeout时间如果连接还处于空闲状态, 该连接会被回收
|
# idle-timeout: 30000 # 经过idle-timeout时间如果连接还处于空闲状态, 该连接会被回收
|
||||||
# min-idle: 5 # 池中维护的最小空闲连接数, 默认为 10 个
|
# min-idle: 5 # 池中维护的最小空闲连接数, 默认为 10 个
|
||||||
# max-pool-size: 16 # 池中最大连接数, 包括闲置和使用中的连接, 默认为 10 个
|
# max-pool-size: 16 # 池中最大连接数, 包括闲置和使用中的连接, 默认为 10 个
|
||||||
# max-lifetime: 60000 # 如果一个连接超过了时长,且没有被使用, 连接会被回收
|
# max-lifetime: 60000 # 如果一个连接超过了时长,且没有被使用, 连接会被回收
|
||||||
# is-auto-commit: true
|
# is-auto-commit: true
|
||||||
# primary: master #设置默认的数据源或者数据源组,默认值即为master
|
# primary: master #设置默认的数据源或者数据源组,默认值即为master
|
||||||
# strict: true #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
|
# strict: true #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
|
||||||
# datasource:
|
# datasource:
|
||||||
# # 主库数据源
|
# # 主库数据源
|
||||||
# master:
|
# master:
|
||||||
# type: ${spring.datasource.type}
|
# type: ${spring.datasource.type}
|
||||||
# driverClassName: com.mysql.cj.jdbc.Driver
|
# driverClassName: com.mysql.cj.jdbc.Driver
|
||||||
# # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
|
# # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
|
||||||
# url: jdbc:mysql://192.168.31.136:3306/iotkit?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false
|
# url: jdbc:mysql://127.0.0.1:3306/iotkit?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false
|
||||||
# username: root
|
# username: root
|
||||||
# password: 123456
|
# password: 123456
|
||||||
# ============mysql配置结束============>>
|
# ============mysql配置结束============>>
|
||||||
|
|
||||||
#<<================es时序数据配置开始===============
|
#<<================es时序数据配置开始===============
|
||||||
|
|
Loading…
Reference in New Issue