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;
}
}
调用
打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮