'How to run python scripts from Spring Boot?
I’m currently working on a web application that use Spring Boot on the backend and can run Python scripts. I try to use jython 2.7.2 and jython-standalone 2.7.2 for run .py files from spring boot (.py files must be in spring project, can't call from an out source like"C:\User\X\abc.py") ) I tried to handle it with create PythonInterpreter object and different ways in Jython web site. But I couldn't do it.
Is it possible to run .py file from spring boot project?
Or I should change my project architecture. Because .py files's count will increase so Jython usage isn't true solution for every single .py files. Instead of I can write backend service with Flask or Django for call .py file (I guess this approach call as microservices)
Which do you think makes more sense? If there is different solutions, I gladly listen. Thanks in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
