From 694c4f5b5662a6248c86b34d1d89c199f07e5df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Fri, 1 Aug 2025 20:34:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=9C=A8gradle=E4=B8=AD=E4=BF=AE=E6=94=B9b?= =?UTF-8?q?ootJar=E7=9A=84spring.profiles.active=E6=98=AF=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=8C=87=E5=AE=9A=E4=BD=BF=E7=94=A8=E5=93=AA=E4=B8=AA?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 6 ------ src/main/resources/application-prod.yml | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index c026c9c..c9ea98a 100644 --- a/build.gradle +++ b/build.gradle @@ -54,12 +54,6 @@ dependencies { testRuntimeOnly 'org.junit.platform:junit-platform-launcher'// JUnit 平台运行时,用于在测试时启动 JUnit Platform(例如在 IDE 或构建工具中运行测试) } -bootJar { - launchScript { - properties 'spring.profiles.active': 'prod' - } -} - tasks.named('test') { useJUnitPlatform() } diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 3e5c70f..0a9bd08 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -1,6 +1,8 @@ server: servlet: context-path: / + encoding: + charset: utf-8 port: 8080 device.enableCanBus: true