Rest API and Web Service for Spring Boot
<p>I have spring boot application, with jdbctemplate i can show my data with this url</p>

<pre><code>http://localhost:8080/query
</code></pre>

<p>and the result like this</p>

<pre><code>[{"id_data":1,"id_user":1,"time":"Thursday, April 09, 2015 18:09:26","ecgvalue":3.3871,"inputtime":"2015-04-09 18:11:25.0"},{"id_data":2,"id_user":1,"time":"Thursday, April 09, 2015 18:09:26","ecgvalue":1.56892,"inputtime":"2015-04-09 18:11:25.0"},{"id_data":3,"id_user":1,"time":"Thursday, April 09, 2015 18:09:26","ecgvalue":1.60802,"inputtime":"2015-04-09 18:11:26.0"},{"id_data":4,"id_user":1,"time":"Thursday, April 09, 2015 18:09:26","ecgvalue":2.09677,"inputtime":"2015-04-09 18:11:26.0"},{"id_data":5,"id_user":1,"time":"Thursday, April 09, 2015 18:09:26","ecgvalue":1.99902,"inputtime":"2015-04-09 18:11:26.0"}]
</code></pre>

<p>I know that is json object. My question is how to make web service from that? like Rest web service 
this is my code <strong>QueryController.java</strong></p>

<pre><code>package com.ewsn.eepiscure.controller;

/**
 *
 * @author sammy
 */
import java.util.List;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class QueryController {

    @Autowired
    protected JdbcTemplate hiveTemplate;

    @RequestMapping("/query")

    public List query() {
        List data = hiveTemplate.queryForList("select * from ecg.hivetbluserdata limit 100");
        return data;
    }


}
</code></pre>