From be169ed1318ed4bb66c1c2019fa419cddc084116 Mon Sep 17 00:00:00 2001 From: geht <2947093423@qq.com> Date: Tue, 19 May 2026 11:22:53 +0800 Subject: [PATCH] Update VSCode configuration, enhance Java project settings, and modify application properties for improved logging and encoding support --- .vscode/launch.json | 24 +++++++------- .vscode/settings.json | 18 ++++++++++- jeecg-boot/.vscode/launch.json | 14 +++++++++ jeecg-boot/.vscode/settings.json | 31 +++++++++++++++++++ .../jeecg-system-local-api/pom.xml | 9 ++++++ .../src/main/resources/application-dev.yml | 9 ++++++ jeecgboot-vue3/.env.production | 2 +- 7 files changed, 94 insertions(+), 13 deletions(-) create mode 100644 jeecg-boot/.vscode/launch.json create mode 100644 jeecg-boot/.vscode/settings.json diff --git a/.vscode/launch.json b/.vscode/launch.json index 281f91d..c716949 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,12 +1,14 @@ { - "configurations": [ - { - "type": "java", - "name": "JeecgSystemApplication", - "request": "launch", - "mainClass": "org.jeecg.JeecgSystemApplication", - "projectName": "jeecg-system-start", - "preLaunchTask": "JeecgBoot: compile" - } - ] -} \ No newline at end of file + "version": "0.2.0", + "configurations": [ + { + "type": "java", + "name": "JeecgSystemApplication (单体)", + "request": "launch", + "mainClass": "org.jeecg.JeecgSystemApplication", + "projectName": "jeecg-system-start", + "cwd": "${workspaceFolder}/jeecg-boot/jeecg-module-system/jeecg-system-start", + "vmArgs": "-Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 54629bf..6dcea9b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -11,5 +11,21 @@ "path": "C:\\Program Files\\Java\\jdk-17", "default": true } - ] + ], + "java.import.exclusions": [ + "**/jeecg-server-cloud/**", + "**/jeecg-boot-platform/**", + "**/node_modules/**", + "**/.metadata/**", + "**/archetype-resources/**", + "**/META-INF/maven/**" + ], + "java.project.resourceFilters": [ + "node_modules", + ".git", + "jeecg-server-cloud", + "jeecg-boot-platform" + ], + "java.debug.settings.console": "integratedTerminal", + "java.debug.settings.vmArgs": "-Dspring.main.banner-mode=log -Dspring.banner.charset=UTF-8 -Dlogging.charset.console=GBK" } diff --git a/jeecg-boot/.vscode/launch.json b/jeecg-boot/.vscode/launch.json new file mode 100644 index 0000000..4001cb9 --- /dev/null +++ b/jeecg-boot/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "java", + "name": "JeecgSystemApplication (单体)", + "request": "launch", + "mainClass": "org.jeecg.JeecgSystemApplication", + "projectName": "jeecg-system-start", + "cwd": "${workspaceFolder}/jeecg-module-system/jeecg-system-start", + "vmArgs": "-Dspring.main.banner-mode=log -Dspring.banner.charset=UTF-8 -Dlogging.charset.console=GBK" + } + ] +} diff --git a/jeecg-boot/.vscode/settings.json b/jeecg-boot/.vscode/settings.json new file mode 100644 index 0000000..6dcea9b --- /dev/null +++ b/jeecg-boot/.vscode/settings.json @@ -0,0 +1,31 @@ +{ + "java.compile.nullAnalysis.mode": "automatic", + "java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx4G -Xms100m -Xlog:disable", + "java.import.maven.enabled": true, + "java.configuration.updateBuildConfiguration": "automatic", + "java.autobuild.enabled": true, + "java.jdt.ls.java.home": "C:\\Program Files\\Java\\jdk-17", + "java.configuration.runtimes": [ + { + "name": "JavaSE-17", + "path": "C:\\Program Files\\Java\\jdk-17", + "default": true + } + ], + "java.import.exclusions": [ + "**/jeecg-server-cloud/**", + "**/jeecg-boot-platform/**", + "**/node_modules/**", + "**/.metadata/**", + "**/archetype-resources/**", + "**/META-INF/maven/**" + ], + "java.project.resourceFilters": [ + "node_modules", + ".git", + "jeecg-server-cloud", + "jeecg-boot-platform" + ], + "java.debug.settings.console": "integratedTerminal", + "java.debug.settings.vmArgs": "-Dspring.main.banner-mode=log -Dspring.banner.charset=UTF-8 -Dlogging.charset.console=GBK" +} diff --git a/jeecg-boot/jeecg-module-system/jeecg-system-api/jeecg-system-local-api/pom.xml b/jeecg-boot/jeecg-module-system/jeecg-system-api/jeecg-system-local-api/pom.xml index 6efb665..4b47b34 100644 --- a/jeecg-boot/jeecg-module-system/jeecg-system-api/jeecg-system-local-api/pom.xml +++ b/jeecg-boot/jeecg-module-system/jeecg-system-api/jeecg-system-local-api/pom.xml @@ -11,4 +11,13 @@ jeecg-system-local-api + + + + org.springframework + spring-webmvc + true + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml b/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml index 35422e4..3018956 100644 --- a/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml +++ b/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml @@ -23,6 +23,11 @@ spring: # main: # # 启动加速 (建议开发环境,开启后flyway自动升级失效) # lazy-initialization: true + # banner.txt 为 UTF-8;Windows 下改走日志输出(与 logging.charset.console=GBK 一致),避免 System.out 乱码 + main: + banner-mode: log + banner: + charset: UTF-8 flyway: # 是否启用flyway enabled: false @@ -315,6 +320,10 @@ cas: prefixUrl: http://cas.example.org:8443/cas #Mybatis输出sql日志 logging: + charset: + # Windows 终端/Cursor 默认 GBK;终端已 chcp 65001 时可改为 UTF-8 + console: GBK + file: UTF-8 level: org.springframework.context.support.PostProcessorRegistrationDelegate: error org.flywaydb: debug diff --git a/jeecgboot-vue3/.env.production b/jeecgboot-vue3/.env.production index ddb4d4b..633d09e 100644 --- a/jeecgboot-vue3/.env.production +++ b/jeecgboot-vue3/.env.production @@ -16,7 +16,7 @@ VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false VITE_GLOB_API_URL=/jeecgboot #后台接口全路径地址(必填) -VITE_GLOB_DOMAIN_URL=http://127.0.0.1:8080/jeecg-boot +VITE_GLOB_DOMAIN_URL=http://127.0.0.1:8888/jeecg-boot # 接口父路径前缀 VITE_GLOB_API_URL_PREFIX=