SpringMVC controller层模板

2019-04-14 19:12发布

@Controller @RequestMapping("esEnsemble") public class EsEnsembleController { @Resource(name = "esEnsembleService") private EsEnsembleService esEnsembleService; @RequestMapping("get.ajax") public @ResponseBody List get(@RequestParam(value="start") String startTime, @RequestParam(value="end") String endTime) { System.out.println("this is HelloController"); List list = esEnsembleService.TimeSearch(startTime, endTime); return list; } }

调用

这里写图片描述