Files
spring-batch-quartz/batch-quartz/src/main/java/com/spring/web/controller/ScheduleController.java
mindol1004 e3569a06b2 commit
2024-12-12 13:48:05 +09:00

25 lines
654 B
Java

package com.spring.web.controller;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/schedule")
public class ScheduleController {
@GetMapping
@PreAuthorize("hasAnyRole('SUPER', 'ADMIN')")
public String schedule() {
return "pages/schedule/schedule";
}
@GetMapping("/history")
@PreAuthorize("hasAnyRole('SUPER', 'ADMIN')")
public String history() {
return "pages/schedule/history";
}
}