我使用VSCode作为编辑器,并且需要对模型类进行自动运行的检测。
要手动运行它,我在外壳mvn org.javalite:activejdbc-instrumentation:2.0:instrument
答案 0 :(得分:1)
我使用以下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"
}
]
}
"preLaunchTask": "Run instrumentation"
中添加.vscode/launch.json