server: port: 8889 servlet: context-path: / tomcat: relaxedQueryChars: <,>, [,],^,`,{,|,} spring: servlet: multipart: max-file-size: 50MB max-request-size: 50MB application: name: trading_system profiles: active: dev mvc: pathmatch: matching-strategy: ant_path_matcher jackson: time-zone: GMT+8 redis: host: localhost port: 6379 database: 0 # spring.redis.pool.max-active=8 # # 连接池最大阻塞等待时间(使用负值表示没有限制) # spring.redis.pool.max-wait=-1 # # 连接池中的最大空闲连接 # spring.redis.pool.max-idle=8 # # 连接池中的最小空闲连接 # spring.redis.pool.min-idle=0 # # 连接超时时间(毫秒) # spring.redis.timeout=0 datasource: druid: # 初始连接数 initial-size: 5 # 最小连接数 min-idle: 15 # 最大连接数 max-active: 500 # 获取连接超时时间 max-wait: 5000 # 连接有效性检测时间 time-between-eviction-runs-millis: 60000 # 连接在池中最小生存的时间 min-evictable-idle-time-millis: 300000 # 连接在池中最大生存的时间 max-evictable-idle-time-millis: 900000 # 指明连接是否被空闲连接回收器(如果有)进行检验.如果检测失败,则连接将被从池中去除 test-while-idle: true # 指明是否在从池中取出连接前进行检验,如果检验失败, 则从池中去除连接并尝试取出另一个 test-on-borrow: false # 是否在归还到池中前进行检验 test-on-return: false # 检测连接是否有效 validation-query: select 'X' # 配置监控统计 webStatFilter: enabled: true stat-view-servlet: allow: enabled: true # 控制台管理用户名和密码 url-pattern: /druid/* reset-enable: false login-username: admin login-password: 2023 filter: stat: enabled: true # 记录慢SQL log-slow-sql: false slow-sql-millis: 1000 merge-sql: true wall: config: multi-statement-allow: true mybatis: type-aliases-package: com.sztzjy.resource_center.entity mapper-locations: classpath*:/mapper/*.xml configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #logging: # level: # com.sztzjy.resource_center.mapper: trace #