📜  如何运行 springboots processbuilder - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:26.939000             🧑  作者: Mango

代码示例1
@PostConstruct
    public void doLog()throws IOException {
        ProcessBuilder processBuilder = new ProcessBuilder();
        processBuilder.command("python3","hello.py");
        processBuilder.directory(new File("src"));

        processBuilder.start();
        log.info("the services is running");
    }