1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| package com.landtool.lanbase.modules.api.controller;
|
| import org.springframework.stereotype.Controller;
| import org.springframework.web.bind.annotation.RequestMapping;
|
| import springfox.documentation.annotations.ApiIgnore;
|
| /**
| * @author TanBin
| * @Description: TODO()
| * @date 2018-1-26 14:16
| */
| @Controller
| @RequestMapping("/api")
| @ApiIgnore()
| public class DocController {
|
| /**
| * API文档访问入口
| * @return
| */
| @RequestMapping("/doc")
| public String apiDoc(){
| return "redirect:/swagger-ui.html";
| }
|
| }
|
|