Update VSCode configuration, enhance Java project settings, and modify application properties for improved logging and encoding support

This commit is contained in:
geht
2026-05-19 11:22:53 +08:00
parent 500de8961d
commit be169ed131
7 changed files with 94 additions and 13 deletions

24
.vscode/launch.json vendored
View File

@@ -1,12 +1,14 @@
{
"configurations": [
{
"type": "java",
"name": "JeecgSystemApplication",
"request": "launch",
"mainClass": "org.jeecg.JeecgSystemApplication",
"projectName": "jeecg-system-start",
"preLaunchTask": "JeecgBoot: compile"
}
]
}
"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"
}
]
}

18
.vscode/settings.json vendored
View File

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

14
jeecg-boot/.vscode/launch.json vendored Normal file
View File

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

31
jeecg-boot/.vscode/settings.json vendored Normal file
View File

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

View File

@@ -11,4 +11,13 @@
<artifactId>jeecg-system-local-api</artifactId>
<dependencies>
<!-- 接口含 SseEmitter/RequestParam显式声明便于 IDE 与编译期解析optional 不传递给调用方) -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>

View File

@@ -23,6 +23,11 @@ spring:
# main:
# # 启动加速 (建议开发环境开启后flyway自动升级失效)
# lazy-initialization: true
# banner.txt 为 UTF-8Windows 下改走日志输出(与 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

View File

@@ -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=