Package com.bytedesk.starter.swagger
Class SwaggerApiController
java.lang.Object
com.bytedesk.starter.swagger.SwaggerApiController
API文档控制器
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncustomSwaggerUi
(org.springframework.ui.Model model) http://127.0.0.1:9003/apidoc/custom-docs 自定义的Swagger UI入口点
-
Field Details
-
messageSource
@Autowired private org.springframework.context.MessageSource messageSource
-
-
Constructor Details
-
SwaggerApiController
public SwaggerApiController()
-
-
Method Details
-
customSwaggerUi
@GetMapping("/apidoc/custom-docs") public String customSwaggerUi(org.springframework.ui.Model model) http://127.0.0.1:9003/apidoc/custom-docs 自定义的Swagger UI入口点- Parameters:
model
- 视图模型- Returns:
- 模板名称
-