From b2e275f52b63c5bc8d2bd1319f8d83f94accb2a1 Mon Sep 17 00:00:00 2001 From: wangys <3401275564@qq.com> Date: Mon, 6 Oct 2025 16:20:32 +0800 Subject: [PATCH] =?UTF-8?q?vscode=E5=90=AF=E5=8A=A8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 9 +++++---- .vscode/tasks.json | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json index ec9f96d..0761bc2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,10 +8,10 @@ "mainClass": "org.xyzh.App", "projectName": "admin", "args": "", - "vmArgs": "-Dspring.profiles.active=dev", + "vmArgs": "-Dspring.profiles.active=dev -Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 -Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8 -Duser.timezone=Asia/Shanghai", "console": "integratedTerminal", "envFile": "${workspaceFolder}/.env", - "preLaunchTask": "" + "preLaunchTask": "set-console-utf8" }, { "type": "java", @@ -22,7 +22,7 @@ "projectName": "admin", "args": "", "envFile": "${workspaceFolder}/.env", - "vmArgs": " -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8744 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.jmx.enabled=true -Djava.rmi.server.hostname=localhost -Dspring.application.admin.enabled=true -Dspring.boot.project.name=admin" + "vmArgs": "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8744 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.jmx.enabled=true -Djava.rmi.server.hostname=localhost -Dspring.boot.project.name=admin -Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 -Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8" }, { "type": "java", @@ -32,7 +32,8 @@ "mainClass": "org.xyzh.Main", "projectName": "api-all", "args": "", - "envFile": "${workspaceFolder}/.env" + "envFile": "${workspaceFolder}/.env", + "vmArgs": "-Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 -Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8" } ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..3fad0b1 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,18 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "set-console-utf8", + "type": "shell", + "command": "chcp", + "args": ["65001"], + "group": "build", + "presentation": { + "echo": false, + "reveal": "silent", + "focus": false, + "panel": "shared" + } + } + ] +}