如果想知道最最最最详细的,可以前往:https://georgedage.blog.csdn.net/article/details/103278405
这里只对数据的返回做出一些代码演示:
Controller层
package com.henu.controller;
import com.henu.bean.N_days_stat;
import com.henu.service.N_days_statService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @author George
* @description
**/
@RestController
public class N_days_statController {
@Autowired
private N_days_statService service;
@RequestMapping("/findAll")
public List<N_days_stat> findAll(Model model){
List<N_days_stat> all = service.findAll();
System.out.println(all + "+++++++++++++");
return all;
}
public N_days_s