javaer快速从idea转战vscode

插件安装列表

在插市场安装下面插件

  • Extension Pack for Java
  • Spring Boot Tools 配置文件提示
  • Database Client Database/No-SQL管理工具
  • httpYac - Rest Client .http文件编辑、API测试工具
    https://httpyac.github.io/guide/request.html
  • Git Graph 图形化Git工具
  • XML by Red Hat XML自动提示及格式化
  • YAML by Red Hat K8S自动提示,格式化
  • MybatisX mybatis插件

设置参数setting.json

  • maven建议直接修改./m2/setting.xml
  • 设置自动保存Files: Auto Save
  • 设置控制台打印的编码
    setting.json
bash 复制代码
{
    "http.proxyStrictSSL": false,
    "http.proxyAuthorization": null,
    "cursor.general.disableHttp2": true,
    "git.autofetch": true,
    "redhat.telemetry.enabled": true,
    "database-client.autoSync": true,
    "xml.validation.enabled": false,
    "diffEditor.ignoreTrimWhitespace": false,
    "workbench.editor.limit.enabled": true,
    "files.autoSave": "onFocusChange",
    "git.enableSmartCommit": true,
    "gitlens.views.commitDetails.files.layout": "tree",
    "java.autoAddMissingImports": true,
    "terminal.integrated.defaultProfile.windows": "Command Prompt",
    "terminal.integrated.profiles.windows": {
        "Command Prompt": {
            "path": "cmd.exe
            "args": ["/K", "chcp 65001"],
            "env": {
                "JAVA_TOOL_OPTIONS": "-Dfile.encoding=UTF-8"
            }
        }
    },
}

配置服务启动文件launch.json

bash 复制代码
{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [

        {
            "type": "java",
            "name": "CDCApplication(test3)",
            "request": "launch",
            "mainClass": "com.CDCApplication",
            "projectName": "platform-api-front",
            "vmArgs": [
                "-Dfile.encoding=UTF-8"
            ],
            "encoding": "UTF-8",
            "args": [
                "--spring.application.name=platform-api",
                "--server.port=31500",
                "--spring.cloud.nacos.config.server-addr=127.0.0.1:8848",
                "--spring.cloud.nacos.config.namespace=test-3",
                "--spring.cloud.nacos.config.username=test3",
                "--spring.cloud.nacos.config.password=test3",
                "--spring.cloud.nacos.config.prefix=platform-api",
                "--spring.cloud.nacos.config.shared-dataids=application.yml",
                "--spring.cloud.nacos.config.refreshable-dataids=application.yml,platform-api.yml",
                "--spring.cloud.nacos.discovery.enabled=true",
                "--spring.cloud.nacos.discovery.register-enabled=false",
                "--mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl",
                "--medicalboot.simple-sign=false",
                "--logging.level.com.fpva.fact.mapper=debug",
                "--logging.level.com.fpva.customized.mapper=debug",
                "--logging.level.com.fpva.dal.mapper.*=debug"
            ]
        }
    ]
}
相关推荐
月亮不月亮5 分钟前
月亮商场购物打折Java
java·eclipse
guozhetao15 分钟前
【ST表、倍增】P7167 [eJOI 2020] Fountain (Day1)
java·c++·python·算法·leetcode·深度优先·图论
技术思考者15 分钟前
基础很薄弱如何规划考研
java·经验分享·考研
●VON39 分钟前
重生之我在暑假学习微服务第二天《MybatisPlus-下篇》
java·学习·微服务·架构·mybatis-plus
老华带你飞39 分钟前
口腔助手|口腔挂号预约小程序|基于微信小程序的口腔门诊预约系统的设计与实现(源码+数据库+文档)
java·数据库·微信小程序·小程序·论文·毕设·口腔小程序
hqxstudying1 小时前
J2EE模式---服务层模式
java·数据库·后端·spring·oracle·java-ee
GM_8281 小时前
【最新最完整】SpringAI-1.0.0开发MCP Server,搭建MCP Client 实战笔记(进阶+详细+完整代码)
java·后端·ai编程·springai·mcp
都叫我大帅哥1 小时前
Java DelayQueue:时间管理大师的终极武器
java
秋千码途1 小时前
小架构step系列27:Hibernate提供的validator
java·spring·架构·hibernate
都叫我大帅哥1 小时前
TOGAF迁移规划阶段全解密:从菜鸟到达人的通关秘籍
java