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