File tree Expand file tree Collapse file tree 1 file changed +28
-3
lines changed
spring-boot-base-core/src/main/resources Expand file tree Collapse file tree 1 file changed +28
-3
lines changed Original file line number Diff line number Diff line change 1
1
# 主配置文件
2
2
3
3
server :
4
+ tomcat :
5
+ uri-encoding : UTF-8
6
+ threads :
7
+ max : 200
8
+ min-spare : 30
9
+ connection-timeout : 5000ms
10
+ # 服务端口
4
11
port : 8080
12
+ servlet :
13
+ context-path : /
14
+ error :
15
+ # SpringBoot 2.3.X 后 message 默认不返回
16
+ include-message : always
17
+ # SpringBoot 2.3.X 后 exception 默认不返回
18
+ include-exception : true
5
19
6
20
spring :
7
21
# 文件编码 UTF8
8
22
mandatory-file-encoding : UTF-8
23
+ mvc :
24
+ # 解决Springfox路径匹配问题
25
+ pathmatch :
26
+ matching-strategy : ant_path_matcher
27
+ # 404交给异常处理器处理
28
+ throw-exception-if-no-handler-found : true
29
+ # 静态资源文件路径
30
+ static-path-pattern : /static/**
31
+ web :
32
+ resources :
33
+ # 关闭默认静态资源的映射规则
34
+ add-mappings : false
9
35
jackson :
10
36
property-naming-strategy : SNAKE_CASE
11
37
serialization :
12
38
WRITE_DATES_AS_TIMESTAMPS : true
39
+ default-property-inclusion : non_null
13
40
freemarker :
14
41
check-template-location : false
15
42
16
43
knife4j :
17
44
# 开启增强配置
18
- enable : true
19
- # 开启生产环境屏蔽
20
- production : false
45
+ enable : true
You can’t perform that action at this time.
0 commit comments