Skip to content

Java integration of Python script and classes into a Spring Boot Web Application. Powered by Jython

Notifications You must be signed in to change notification settings

amemifra/Spring-Jython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Jython

A simple Java Spring Boot application with Jython integration.

Installation

git clone git@github.com:amemifra/Spring-Jython.git

Your system must have install

  • Java
  • Maven
  • VS Code
  • Java Extention Pack - VS Code Extention
  • Rest Client Extention - VS Code Extention

Examples

Before start: Open VS Code press f5 to autoattach the java debugger and start the Spring Boot Application.

Launch a script

Open test.http and send the request

GET http://localhost:8080/api/hello-world

This will log "hello world!" in the debug console.

Launch a method in a Python Class

Open test.http and send the request

GET http://localhost:8080/api/class?n=20&d=2

This will back 10 (20/2) as result of the web request sent

About

Java integration of Python script and classes into a Spring Boot Web Application. Powered by Jython

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published