JobController.java 802 B

12345678910111213141516171819202122232425262728
  1. package com.tzld.piaoquan.longarticle.controller;
  2. import com.tzld.piaoquan.longarticle.job.NewMatchVideoJob;
  3. import lombok.extern.slf4j.Slf4j;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.web.bind.annotation.GetMapping;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.RestController;
  8. @Slf4j
  9. @RestController
  10. @RequestMapping("/job")
  11. public class JobController {
  12. @Autowired
  13. NewMatchVideoJob newMatchVideoJob;
  14. @GetMapping("/matchCrawlerVideo")
  15. public void matchCrawlerVideo() {
  16. newMatchVideoJob.matchCrawlerVideoJob(null);
  17. }
  18. @GetMapping("/vectorMatchVideoJob")
  19. public void vectorMatchVideoJob() {
  20. newMatchVideoJob.vectorMatchVideoJob(null);
  21. }
  22. }