SwaggerController.java 635 B

12345678910111213141516171819202122
  1. package com.ruoyi.web.controller.tool;
  2. import org.springframework.security.access.prepost.PreAuthorize;
  3. import org.springframework.stereotype.Controller;
  4. import org.springframework.web.bind.annotation.GetMapping;
  5. import org.springframework.web.bind.annotation.RequestMapping;
  6. import com.ruoyi.common.core.controller.BaseController;
  7. /**
  8. * swagger 接口
  9. *
  10. * @author ruoyi
  11. */
  12. @Controller
  13. @RequestMapping("/tool/swagger")
  14. public class SwaggerController extends BaseController {
  15. @PreAuthorize("@ss.hasPermi('tool:swagger:view')")
  16. @GetMapping()
  17. public String index() {
  18. return redirect("/swagger-ui.html");
  19. }
  20. }