@Controller public class Swagger2Controller extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_URL |
| 构造器和说明 |
|---|
Swagger2Controller(org.springframework.core.env.Environment environment,
DocumentationCache documentationCache,
ServiceModelToSwagger2Mapper mapper,
JsonSerializer jsonSerializer) |
@Autowired
public Swagger2Controller(org.springframework.core.env.Environment environment,
DocumentationCache documentationCache,
ServiceModelToSwagger2Mapper mapper,
JsonSerializer jsonSerializer)
@RequestMapping(value="/v2/api-docs",
method=GET,
produces={"application/json","application/hal+json"})
@PropertySourcedMapping(value="${springfox.documentation.swagger.v2.path}",
propertyKey="springfox.documentation.swagger.v2.path")
@ResponseBody
public org.springframework.http.ResponseEntity<Json> getDocumentation(@RequestParam(value="group",required=false)
String swaggerGroup,
javax.servlet.http.HttpServletRequest servletRequest)
Copyright © 2022. All rights reserved.