|
| 1 | +logging: |
| 2 | + config: classpath:config/logback-spring.xml |
| 3 | + |
| 4 | + |
| 5 | +mybatis: |
| 6 | + configuration: |
| 7 | + local-cache-scope: session |
| 8 | + map-underscore-to-camel-case: true |
| 9 | + use-generated-keys: true |
| 10 | + |
| 11 | + |
| 12 | +pagehelper: |
| 13 | + reasonable: true |
| 14 | + support-methods-arguments: true |
| 15 | + |
| 16 | + |
| 17 | +spring: |
| 18 | + datasource: |
| 19 | + data: classpath:db/data.sql |
| 20 | + driver-class-name: org.h2.Driver |
| 21 | + druid: |
| 22 | + connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 |
| 23 | + filter: |
| 24 | + slf4j: |
| 25 | + connection-log-enabled: false |
| 26 | + enabled: true |
| 27 | + result-set-log-enabled: true |
| 28 | +# statement-executable-sql-log-enable: true |
| 29 | + statement-execute-after-log-enabled: true |
| 30 | +# statement-execute-batch-after-log-enabled: false |
| 31 | +# statement-execute-query-after-log-enabled: false |
| 32 | +# statement-log-enabled: true |
| 33 | +# statement-parameter-clear-log-enable: false |
| 34 | +# statement-parameter-set-log-enabled: true |
| 35 | +# statement-prepare-after-log-enabled: false |
| 36 | +# statement-prepare-call-after-log-enabled: false |
| 37 | + stat: |
| 38 | + db-type: mysql |
| 39 | + log-slow-sql: true |
| 40 | + merge-sql: true |
| 41 | + slow-sql-millis: 2000 |
| 42 | + filters: stat,wall,slf4j |
| 43 | + initialSize: 5 |
| 44 | + log-different-thread: true |
| 45 | + maxActive: 20 |
| 46 | + maxPoolPreparedStatementPerConnectionSize: 20 |
| 47 | + maxWait: 60000 |
| 48 | + minEvictableIdleTimeMillis: 300000 |
| 49 | + minIdle: 5 |
| 50 | + poolPreparedStatements: true |
| 51 | + testOnBorrow: false |
| 52 | + testOnReturn: false |
| 53 | + testWhileIdle: true |
| 54 | + timeBetweenEvictionRunsMillis: 60000 |
| 55 | + useGlobalDataSourceStat: true |
| 56 | + validationQuery: SELECT 1 FROM DUAL |
| 57 | + password: '' |
| 58 | + schema: classpath:db/schema.sql |
| 59 | + type: com.alibaba.druid.pool.DruidDataSource |
| 60 | + url: jdbc:h2:mem:default |
| 61 | + username: sa |
| 62 | + h2: |
| 63 | + console: |
| 64 | + enabled: true |
| 65 | + path: /h2-console |
| 66 | + settings: |
| 67 | + trace: true |
| 68 | + web-allow-others: true |
| 69 | + jackson: |
| 70 | + property-naming-strategy: SNAKE_CASE |
0 commit comments