package com.gunshi.project.hsz.controller; import com.gunshi.project.hsz.timetask.PaDataTask; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.text.ParseException; @Tag(name = "后门") @RestController @RequestMapping(value="/debug") public class DebugController { @Autowired private PaDataTask paDataTask; @GetMapping("/patask") public String patask(){ try { paDataTask.PaDataCalc(); return "成功"; } catch (ParseException e) { return "失败"; } } }