mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-06 08:38:26 +08:00
69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
# DataSource Config
|
|
#spring:
|
|
# # h2:
|
|
# # console:
|
|
# # enabled: true
|
|
# datasource:
|
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
|
# url: jdbc:mysql://localhost:3306/flex_test
|
|
# username: root
|
|
# password: 12345678
|
|
# driver-class-name:
|
|
# datasource:
|
|
# driver-class-name: org.h2.Driver
|
|
# username: root
|
|
# password: test
|
|
# sql:
|
|
# init:
|
|
# schema-locations: classpath:schema.sql
|
|
# data-locations: classpath:data.sql
|
|
#mybatis-flex:
|
|
# admin-config:
|
|
# enable: true
|
|
# endpoint: http://localhost/admin
|
|
# secret-key: secretKey
|
|
# mapper-locations:
|
|
# - classpath*:/mapper/*.xml
|
|
# global-config:
|
|
# print-banner: false
|
|
# key-config:
|
|
# key-type: generator
|
|
# value: uuid
|
|
# configuration:
|
|
# use-generated-keys: true
|
|
# datasource:
|
|
# data-center:
|
|
# url: jdbc:mysql://localhost:3306/flex_test
|
|
# username: root
|
|
# password: 12345678
|
|
|
|
#禁止项目启动自动运行job
|
|
spring:
|
|
batch:
|
|
job:
|
|
enabled: false
|
|
|
|
#springdoc-openapi项目配置
|
|
springdoc:
|
|
swagger-ui:
|
|
path: /swagger-ui.html
|
|
tags-sorter: alpha
|
|
operations-sorter: alpha
|
|
api-docs:
|
|
path: /v3/api-docs
|
|
group-configs:
|
|
- group: 'default'
|
|
paths-to-match: '/**'
|
|
packages-to-scan: com.mybatisflex.test.controller
|
|
|
|
mybatis-flex:
|
|
datasource:
|
|
ds1:
|
|
url: jdbc:mysql://127.0.0.1:3306/flex_test
|
|
username: root
|
|
password: 123456
|
|
ds2:
|
|
url: jdbc:mysql://127.0.0.1:3306/flex_test
|
|
username: root
|
|
password: 123456
|