| | |
| | | master:
|
| | | url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
| | | username: root
|
| | | password: password
|
| | | password: 123456
|
| | | # 从库数据源
|
| | | slave:
|
| | | # 从数据源开关/默认关闭
|
| | | enabled: false
|
| | | url: |
| | | username: |
| | | password: |
| | | url:
|
| | | username:
|
| | | password:
|
| | | # 初始连接数
|
| | | initialSize: 5
|
| | | # 最小连接池数量
|
| | |
| | | maxActive: 20
|
| | | # 配置获取连接等待超时的时间
|
| | | maxWait: 60000
|
| | | # 配置连接超时时间
|
| | | connectTimeout: 30000
|
| | | # 配置网络超时时间
|
| | | socketTimeout: 60000
|
| | | # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
| | | timeBetweenEvictionRunsMillis: 60000
|
| | | # 配置一个连接在池中最小生存的时间,单位是毫秒
|
| | |
| | | testWhileIdle: true
|
| | | testOnBorrow: false
|
| | | testOnReturn: false
|
| | | webStatFilter: |
| | | webStatFilter:
|
| | | enabled: true
|
| | | statViewServlet:
|
| | | enabled: true
|
| | |
| | | merge-sql: true
|
| | | wall:
|
| | | config:
|
| | | multi-statement-allow: true |
| | | multi-statement-allow: true
|
| | |
|
| | | # mybatis-plus配置
|
| | | mybatis-plus:
|
| | | mapper-locations: classpath*:mapper/**/*Mapper.xml
|
| | | type-aliases-package: com.ruoyi.**.domain
|
| | | global-config:
|
| | | banner: off
|
| | | db-config:
|
| | | id-type: auto
|
| | | configuration:
|
| | | map-underscore-to-camel-case: true
|
| | | cache-enabled: false
|
| | | log-impl: # org.apache.ibatis.logging.stdout.StdOutImpl |