forked from JavaCourse00/JavaCourseCodes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.yml
More file actions
45 lines (40 loc) · 1.09 KB
/
application.yml
File metadata and controls
45 lines (40 loc) · 1.09 KB
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
server:
port: 8080
spring:
datasource:
username: root
password:
url: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
driver-class-name: com.mysql.jdbc.Driver
cache:
type: simple
# type: redis
# redis:
# timeout: 3000ms
# database: 0
# cluster:
# nodes:
# - 127.0.0.1:7000
# - 127.0.0.1:7001
# - 127.0.0.1:7002
# - 127.0.0.1:7003
# - 127.0.0.1:7004
# - 127.0.0.1:7005
# max-redirects: 3 # 获取失败 最大重定向次数
# lettuce:
# pool:
# max-active: 1000 #连接池最大连接数(使用负值表示没有限制)
# max-idle: 10 # 连接池中的最大空闲连接
# min-idle: 5 # 连接池中的最小空闲连接
# max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
# type: ehcache
# ehcache:
# config: ehcache.xml
mybatis:
mapper-locations: classpath:mapper/*Mapper.xml
type-aliases-package: io.kimmking.cache.entity
logging:
level:
io:
kimmking:
cache : info