Skip to content

Commit 64daecf

Browse files
committed
chore: update application.yml
1 parent 3cf1e11 commit 64daecf

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed
Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,45 @@
11
# 主配置文件
22

33
server:
4+
tomcat:
5+
uri-encoding: UTF-8
6+
threads:
7+
max: 200
8+
min-spare: 30
9+
connection-timeout: 5000ms
10+
# 服务端口
411
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
519

620
spring:
721
# 文件编码 UTF8
822
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
935
jackson:
1036
property-naming-strategy: SNAKE_CASE
1137
serialization:
1238
WRITE_DATES_AS_TIMESTAMPS: true
39+
default-property-inclusion: non_null
1340
freemarker:
1441
check-template-location: false
1542

1643
knife4j:
1744
# 开启增强配置
18-
enable: true
19-
# 开启生产环境屏蔽
20-
production: false
45+
enable: true

0 commit comments

Comments
 (0)