how to run springboots processbuilder

The solution for “how to run springboots processbuilder” can be found here. The following code will assist you in solving the problem.

@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”);
}

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in