สร้าง Config เพื่อใส่ parameter ให้ java ตอน run debug code
ไปหน้า Run (Ctrl + Shift+ D)
 เลือกสร้างหรือแก้ไข launch.json
รูปแบบตามข้างล่าง vmArgs ใส่เพื่อเป็น param ให้ java
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "java",
            "name": "Debug (Launch) - Current File",
            "request": "launch",
            "mainClass": "${file}",
            "vmArgs": "-Dbpo-resource=D:\\Project\\bpo\\jdbc.bpo.dol.properties"
        },
        {
            "type": "java",
            "name": "Debug (Launch)-Application<bpo-core-api-ws>",
            "request": "launch",
            "mainClass": "com.wealth.bpo.Application",
            "projectName": "bpo-core-api-ws",
            "vmArgs": "-Dbpo-resource=D:\\Project\\bpo\\jdbc.bpo.dol.properties"
        },
        {
            "type": "java",
            "name": "Debug (Launch)-Param",
            "request": "launch",
            "mainClass": "com.wealth.bpo.Application",
            "projectName": "bpo-core-api-ws",
            "vmArgs": "-Dbpo-resource=D:\\Project\\bpo\\jdbc.bpo.dol.properties"
        }
    ]
}

