Spring & Maven. Workout "Web Calculator"
URLs with some sample values for @RequestParam "num1" and "num2":
http://localhost:8080/calculator/plus?num1=10&num2=20
http://localhost:8080/calculator/minus?num1=10&num2=20
http://localhost:8080/calculator/multiply?num1=10&num2=20
http://localhost:8080/calculator/divide?num1=10&num2=20
By division by zero there will be corresponding message returned: