From 069fc85579bf220cd025bb57f9bab5f1690e29fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AE=B6=E8=AE=AD?= Date: Thu, 20 Aug 2026 09:25:27 +0800 Subject: [PATCH] feat: add logback-spring.xml UTF-8 console encoding and start.bat(chcp 65001) to fix Chinese log garbled on Windows console --- src/main/resources/logback-spring.xml | 22 ++++++++++++++++++++++ start.bat | 5 +++++ 2 files changed, 27 insertions(+) create mode 100644 src/main/resources/logback-spring.xml create mode 100644 start.bat diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..d61cc3b --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,22 @@ + + + + + + UTF-8 + %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{50} - %msg%n + + + + + + + + + + diff --git a/start.bat b/start.bat new file mode 100644 index 0000000..d74ec56 --- /dev/null +++ b/start.bat @@ -0,0 +1,5 @@ +@echo off +chcp 65001 >nul +cd /d %~dp0 +echo Starting Freedom-Admin on http://localhost:8800 ... +mvn spring-boot:run