Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

heinrich10/demo-j

Repository files navigation

demo-j

Challenge

Checkout the latest source and run mvn spring-boot:run

this would run the server in the console. then you can do the curl on another terminal curl -X PUT --data-urlencode value='10+2*3' localhost:6666/calculate

you have to change the -d into --data-urlencode since curl interprets + as space

Plot Twist

I found a library that can do what you are asking. Check out exp4j. Is this your intention?

Majority of the time I spent here is configuring the Spring Framework, which is expected for Java. I just added 2 classes. CalculatorService CalculatorController

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published