我使用 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/