首页>代码>spring boot+spring data jpa+h2实现quartz任务管理系统>/spring-boot-quartz-master/src/main/java/com/stackabuse/controller/IndexController.java
package com.stackabuse.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import com.stackabuse.entity.SchedulerJobInfo; import com.stackabuse.service.SchedulerJobService; @Controller public class IndexController { @Autowired private SchedulerJobService scheduleJobService; @GetMapping("/index") public String index(Model model){ List<SchedulerJobInfo> jobList = scheduleJobService.getAllJobList(); model.addAttribute("jobs", jobList); return "index"; } }
最近下载更多