|
| 1 | +server: |
| 2 | + port: 9090 |
| 3 | + |
| 4 | +spring: |
| 5 | + servlet: |
| 6 | + multipart: |
| 7 | + max-file-size: 10MB |
| 8 | + max-request-size: 10MB |
| 9 | + jackson: |
| 10 | + date-format: yyyy-MM-dd HH:mm:ss |
| 11 | + datasource: |
| 12 | + driver-class-name: org.mariadb.jdbc.Driver |
| 13 | + username: root |
| 14 | + password: 111111 |
| 15 | + url: jdbc:mariadb://tiny-engine-data:3306/tiny_engine_data_java?useUnicode=true&useSSL=false&characterEncoding=utf8 |
| 16 | + type: com.alibaba.druid.pool.DruidDataSource |
| 17 | + druid: |
| 18 | + initial-size: 5 # 连接池初始化时建立的连接数,默认值为 0。 |
| 19 | + min-idle: 5 # 连接池中最小的空闲连接数,默认值为 0。 |
| 20 | + max-active: 20 # 连接池中最大活动连接数(即同时可以被请求的连接数),默认值为 8。 |
| 21 | + test-on-borrow: true # 在从连接池获取连接时,是否进行有效性检查,默认值为 false。 |
| 22 | + validation-query: SELECT 1 # 用于检测连接是否有效的 SQL 查询语句,通常为简单的查询,比如 `SELECT 1`。如果连接不可用,会被关闭并重新建立。 |
| 23 | + max-wait: 60000 # 获取连接的最大等待时间(单位:毫秒),超时会抛出异常,默认值为 30000。 |
| 24 | + time-between-eviction-runs-millis: 60000 # 空闲连接检测线程运行的时间间隔(单位:毫秒)。空闲连接检测线程会定期检查空闲连接,默认值为 30000。 |
| 25 | + min-evictable-idle-time-millis: 300000 # 连接在池中保持空闲的最小时间(单位:毫秒)。如果空闲时间超过这个值,连接将被回收,默认值为 1800000。 |
| 26 | + pool-prepared-statements: true # 是否缓存 PreparedStatement 对象,默认值为 true。 |
| 27 | + max-open-prepared-statements: 20 # 最大缓存的 PreparedStatement 数量,默认值为 -1,表示无限制。如果 `pool-prepared-statements` 设置为 true,设置此值以限制缓存数量。 |
| 28 | + config: |
| 29 | + activate: |
| 30 | + on-profile: alpha |
| 31 | + #切面启用 |
| 32 | + aop: |
| 33 | + proxy-target-class: true #默认为false |
| 34 | + auto: true #默认为false |
| 35 | +springdoc: |
| 36 | + api-docs: |
| 37 | + #是否开启文档功能 |
| 38 | + enabled: true |
| 39 | + #swagger后端请求地址 |
| 40 | + path: /api-docs |
| 41 | + swagger-ui: |
| 42 | + enabled: false |
| 43 | + path: /swagger-ui.html #自定义swagger-ui HTML文档路径 |
| 44 | + #包扫描路径 |
| 45 | + packages-to-scan: com.tinyengine.it.controller |
| 46 | + |
| 47 | +mybatis-plus: |
| 48 | + mapper-locations: classpath:mappers/*.xml |
| 49 | + configuration: |
| 50 | + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
| 51 | + map-underscore-to-camel-case: true |
| 52 | + auto-mapping-behavior: full |
| 53 | + com.tinyengine.it.mapper: debug |
| 54 | + type-handlers-package: com.tinyengine.it.common.handler |
| 55 | + |
| 56 | + |
| 57 | +logging: |
| 58 | + level: |
| 59 | + ROOT: INFO |
| 60 | + druid.sql.Statement: INFO |
| 61 | + pattern: |
| 62 | + file: "%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n" |
| 63 | + file: |
| 64 | + name: /logs |
| 65 | + |
| 66 | +cors: |
| 67 | + allowed-origins: "*" |
| 68 | + |
0 commit comments