Skip to main content
 首页 » 编程设计

python之Spring批处理运行python代码

2025年05月04日2052php

是否可以使用Spring Batch来运行Python程序? Jython 不是一个选项(因为依赖于许多 Python 库)。

请您参考如下方法:

SystemCommandTasklet 允许您执行任何您想要的 shell 命令,如果您愿意,还可以包括 python 脚本。您可以在此处阅读文档:http://docs.spring.io/spring-batch/apidocs/org/springframework/batch/core/step/tasklet/SystemCommandTasklet.html