简体   繁体   中英

Is it possible to have a self-contained spring boot jar which can execute R scripts?

I have a spring boot + react application. The cool thing about spring boot is thus that it is able to run two different languages, namely Java and JavaScript anywhere without having to install many of the prerequisites like application or web servers.

My question is whether it is also possible to add a third language, namely R, such it is also completely contained in the JAR. And if yes is there any good framework and a tutorial?

There is a walkthrough of one such instance here: https://medium.com/graalvm/enhance-your-java-spring-application-with-r-data-science-b669a8c28bea

The demo application is found: https://github.com/graalvm/graalvm-demos

In order to complete this, you must download GraalVM and add it to the path. You will also have to download any necessary dependencies for the particular project you are doing.

As far as packaging it all as a JAR, I would assume it is possible since everything is done within the project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM