forked from xkcoding/spring-boot-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.yml
59 lines (59 loc) · 1.56 KB
/
application.yml
1
2
3
4
5
6
7
8
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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/*"