创建一个多媒体文件数据查询的Rest web service服务:VideoDBController.java
package image;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
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;
import image.storage.FileInfoBean;
@RestController
public class VideoDBController {
@Autowired
private JdbcTemplate jdbcTemplate;
@RequestMapping("/videoList")
public List getVideoList()
{
String sql = "select * from video_info";
List> resTmp = jdbcTemplate.queryForList(sql);
List