vscode启动修改

This commit is contained in:
2025-10-06 16:20:32 +08:00
parent a58f316703
commit b2e275f52b
2 changed files with 23 additions and 4 deletions

9
.vscode/launch.json vendored
View File

@@ -8,10 +8,10 @@
"mainClass": "org.xyzh.App", "mainClass": "org.xyzh.App",
"projectName": "admin", "projectName": "admin",
"args": "", "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", "console": "integratedTerminal",
"envFile": "${workspaceFolder}/.env", "envFile": "${workspaceFolder}/.env",
"preLaunchTask": "" "preLaunchTask": "set-console-utf8"
}, },
{ {
"type": "java", "type": "java",
@@ -22,7 +22,7 @@
"projectName": "admin", "projectName": "admin",
"args": "", "args": "",
"envFile": "${workspaceFolder}/.env", "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", "type": "java",
@@ -32,7 +32,8 @@
"mainClass": "org.xyzh.Main", "mainClass": "org.xyzh.Main",
"projectName": "api-all", "projectName": "api-all",
"args": "", "args": "",
"envFile": "${workspaceFolder}/.env" "envFile": "${workspaceFolder}/.env",
"vmArgs": "-Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 -Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8"
} }
] ]
} }

18
.vscode/tasks.json vendored Normal file
View File

@@ -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"
}
}
]
}