Update VSCode configuration, enhance Java project settings, and modify application properties for improved logging and encoding support
This commit is contained in:
6
.vscode/launch.json
vendored
6
.vscode/launch.json
vendored
@@ -1,12 +1,14 @@
|
|||||||
{
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"type": "java",
|
"type": "java",
|
||||||
"name": "JeecgSystemApplication",
|
"name": "JeecgSystemApplication (单体)",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"mainClass": "org.jeecg.JeecgSystemApplication",
|
"mainClass": "org.jeecg.JeecgSystemApplication",
|
||||||
"projectName": "jeecg-system-start",
|
"projectName": "jeecg-system-start",
|
||||||
"preLaunchTask": "JeecgBoot: compile"
|
"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
18
.vscode/settings.json
vendored
@@ -11,5 +11,21 @@
|
|||||||
"path": "C:\\Program Files\\Java\\jdk-17",
|
"path": "C:\\Program Files\\Java\\jdk-17",
|
||||||
"default": true
|
"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
14
jeecg-boot/.vscode/launch.json
vendored
Normal 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
31
jeecg-boot/.vscode/settings.json
vendored
Normal 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"
|
||||||
|
}
|
||||||
@@ -11,4 +11,13 @@
|
|||||||
|
|
||||||
<artifactId>jeecg-system-local-api</artifactId>
|
<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>
|
</project>
|
||||||
@@ -23,6 +23,11 @@ spring:
|
|||||||
# main:
|
# main:
|
||||||
# # 启动加速 (建议开发环境,开启后flyway自动升级失效)
|
# # 启动加速 (建议开发环境,开启后flyway自动升级失效)
|
||||||
# lazy-initialization: true
|
# lazy-initialization: true
|
||||||
|
# banner.txt 为 UTF-8;Windows 下改走日志输出(与 logging.charset.console=GBK 一致),避免 System.out 乱码
|
||||||
|
main:
|
||||||
|
banner-mode: log
|
||||||
|
banner:
|
||||||
|
charset: UTF-8
|
||||||
flyway:
|
flyway:
|
||||||
# 是否启用flyway
|
# 是否启用flyway
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -315,6 +320,10 @@ cas:
|
|||||||
prefixUrl: http://cas.example.org:8443/cas
|
prefixUrl: http://cas.example.org:8443/cas
|
||||||
#Mybatis输出sql日志
|
#Mybatis输出sql日志
|
||||||
logging:
|
logging:
|
||||||
|
charset:
|
||||||
|
# Windows 终端/Cursor 默认 GBK;终端已 chcp 65001 时可改为 UTF-8
|
||||||
|
console: GBK
|
||||||
|
file: UTF-8
|
||||||
level:
|
level:
|
||||||
org.springframework.context.support.PostProcessorRegistrationDelegate: error
|
org.springframework.context.support.PostProcessorRegistrationDelegate: error
|
||||||
org.flywaydb: debug
|
org.flywaydb: debug
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
|
|||||||
VITE_GLOB_API_URL=/jeecgboot
|
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=
|
VITE_GLOB_API_URL_PREFIX=
|
||||||
|
|||||||
Reference in New Issue
Block a user