|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- server:
- port: 8080
- servlet:
- context-path: /demo
- spring:
- datasource:
- hikari:
- username: root
- password: root
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/spring-boot-demo?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&failOverReadOnly=false&serverTimezone=GMT%2B8
- jpa:
- show-sql: true
- generate-ddl: false
- hibernate:
- ddl-auto: validate
- open-in-view: true
- properties:
- hibernate:
- dialect: org.hibernate.dialect.MySQL57InnoDBDialect
- resources:
- add-mappings: false
- mvc:
- throw-exception-if-no-handler-found: true
- redis:
- host: localhost
- port: 6379
- # 连接超时时间(记得添加单位,Duration)
- timeout: 10000ms
- # Redis默认情况下有16个分片,这里配置具体使用的分片
- # database: 0
- lettuce:
- pool:
- # 连接池最大连接数(使用负值表示没有限制) 默认 8
- max-active: 8
- # 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1
- max-wait: -1ms
- # 连接池中的最大空闲连接 默认 8
- max-idle: 8
- # 连接池中的最小空闲连接 默认 0
- min-idle: 0
- jwt:
- config:
- key: xkcoding
- ttl: 600000
- remember: 604800000
- logging:
- level:
- com.xkcoding.rbac.security: debug
- custom:
- config:
- ignores:
- # 需要过滤的 post 请求
- post:
- - "/api/auth/login"
- - "/api/auth/logout"
- # 需要过滤的请求,不限方法
- pattern:
- - "/test/*"
|