How to create a spring based java REST service in 5 minutes

Please follow  this tutorial

https://spring.io/guides/gs/rest-service/

and the video on you tube

Make sure  you have same page as below.

Building a RESTful Web Service

This guide walks you through the process of creating a “hello world” RESTful web service with Spring.

What you’ll build

You’ll build a service that will accept HTTP GET requests at:


Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Twilio' does not have a method 'user_phone_confirm_func' in /homepages/34/d635065961/htdocs/clickandbuilds/ASKYOURQUESTIONS/wp-includes/class-wp-hook.php on line 286