From 5c414537f9093d80890f2cf0ff43eee668913476 Mon Sep 17 00:00:00 2001 From: yanlongqi Date: Sat, 28 Dec 2024 20:41:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20application-prod.yml=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在文件开头添加空行,并设置服务器上下文路径为 /api。 --- src/main/resources/application-prod.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 519af91..6180182 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -1,3 +1,4 @@ + spring: datasource: driver-class-name: org.postgresql.Driver @@ -8,4 +9,7 @@ spring: # 日志级别,生产环境改为warn logging: level: - root: info \ No newline at end of file + root: info +server: + servlet: + context-path: /api \ No newline at end of file