passback-debug.yaml 1.8 KB
Newer Older
dwxh's avatar
dwxh 已提交
1
server:
dwxh's avatar
dwxh 已提交
2
  port: 8080
dwxh's avatar
dwxh 已提交
3
4
5
6
7
  servlet:
    context-path: /

spring:
  datasource:
dwxh's avatar
dwxh 已提交
8
    url: jdbc:mysql://localhost:3306/APS?serverTimezone=Asia/Shanghai&characterEncoding=utf-8&allowMultiQueries=true
dwxh's avatar
dwxh 已提交
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
    username: root
    driver-class-name: com.mysql.cj.jdbc.Driver
    initialization-mode: always
    schema: classpath*:sql/init.sql
    druid:
      initialSize: 5
      minIdle: 5
      maxActive: 20
      maxWait: 60000
      timeBetweenEvictionRunsMillis: 60000
      minEvictableIdleTimeMillis: 300000
      validationQuery: SELECT 1 FROM DUAL
      poolPreparedStatements: true
      useGlobalDataSourceStat: true
      filters: stat,wall
      web-stat-filter:
        enabled: true
        url-pattern: "/*"
        exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
        session-stat-enable: true
        session-stat-max-count: 1000
      stat-view-servlet:
        enabled: true
        url-pattern: /druid/*
        reset-enable: false
        login-username: root
        login-password: root
      #通过connectProperties属性来打开mergeSql功能;慢SQL记录
      connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  jpa:
    database: MYSQL
    show-sql: true
    properties:
      hibernate:
dwxh's avatar
dwxh 已提交
43
        dialect: org.hibernate.dialect.MySQL8Dialect
dwxh's avatar
dwxh 已提交
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
    hibernate:
      ddl-auto: update
      naming:
        physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

logging:
  level:
    root: debug
  pattern:
    console: "%clr(%d{yyyy-MM-dd HH:mm:ss}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(-){faint} %clr([%14.14t]){faint} %clr(%-40.40logger.%30.30M){cyan} %clr(%5.5L) %clr(:){faint} %msg%n"
management:
  endpoint:
    health:
      show-details: always
  endpoints:
    web:
      exposure:
        include: "*"
optaplanner:
  solver:
    termination:
dwxh's avatar
dwxh 已提交
65
      spent-limit: 30s