gpt4 book ai didi

java - VSCode 中的自动 ActiveJDBC 检测

转载 作者:行者123 更新时间:2023-12-02 11:02:29 25 4
gpt4 key购买 nike

我使用 VSCode 作为编辑器,我需要对我的模型类进行自动运行检测。要手动运行它,我在 shell mvn org.javalite:activejdbc-instrumentation:2.0:instrument

中运行

最佳答案

我使用以下 VSCode 扩展在 Java 上进行开发:https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack

已解决:1.创建.vscode/tasks.json

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run instrumentation",
"type": "shell",
"command": "mvn org.javalite:activejdbc-instrumentation:2.0:instrument"
}
]
}
  • .vscode/launch.json 中添加 "preLaunchTask": "Run Instrumentation"
  • 关于java - VSCode 中的自动 ActiveJDBC 检测,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51222330/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com