spring-boot-starter-swagger icon indicating copy to clipboard operation
spring-boot-starter-swagger copied to clipboard

自制spring boot starter for swagger 2.x,来试试吧,很好用哦~

Results 94 spring-boot-starter-swagger issues
Sort by recently updated
recently updated
newest added

看日志只有api-docs和以下几个swagger相关的mapping被执行了 Mapped "{[/swagger-resources/configuration/ui]}" onto public org.springframework.http.ResponseEntity springfox.documentation.swagger.web.ApiResourceController.uiConfiguration() Mapped "{[/swagger-resources]}" onto public org.springframework.http.ResponseEntity springfox.documentation.swagger.web.ApiResourceController.swaggerResources() Mapped "{[/swagger-resources/configuration/security]}" o

false jcenter-releases jcenter http://jcenter.bintray.com 目前用的这个地址

我的spring context中已经存在`List bean`,`SwaggerAutoConfiguration.createRestApi`该bean不会被创建,导致`API`不能分组,我目前的解决方案是 ``` @Bean public List dockets() { SwaggerAutoConfiguration swaggerAutoConfiguration = new SwaggerAutoConfiguration(); swaggerAutoConfiguration.setBeanFactory(beanFactory); return swaggerAutoConfiguration.createRestApi(swaggerProperties); } ```

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2018-11-06 14:18:26.565 [restartedMain] ERROR org.springframework.boot.SpringApplication - Application startup failed org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested...

永超,你好: 使用版本 1.8.0.RELEASE,Spring Boot 2.0.4 在尝试使用 **全局响应消息配置**,[文档](https://github.com/SpringForAll/spring-boot-starter-swagger#%E8%87%AA%E5%AE%9A%E4%B9%89%E5%85%A8%E5%B1%80%E5%93%8D%E5%BA%94%E6%B6%88%E6%81%AF%E9%85%8D%E7%BD%AE160--%E6%94%AF%E6%8C%81),设置了多个返回 code 后发现,只有 200 状态没有生效,其他 ok application.propertes ``` swagger.apply-default-response-messages=false swagger.global-response-message.get[0].code=200 swagger.global-response-message.get[0].message=成功返回 swagger.global-response-message.get[1].code=401 swagger.global-response-message.get[1].message=未授权 #swagger.global-response-message.get[1].modelRef=ERROR swagger.global-response-message.get[2].code=403 swagger.global-response-message.get[2].message=禁止访问 swagger.global-response-message.get[3].code=404 swagger.global-response-message.get[3].message=未找到 swagger.global-response-message.get[4].code=500 swagger.global-response-message.get[4].message=内部错误 swagger.global-response-message.post[0].code=500 swagger.global-response-message.post[0].message=内部错误 #swagger.global-response-message.post[0].modelRef=ERROR ```...

help wanted

如果是代码里面配的话是这样子 Docket docket = new Docket(DocumentationType.SWAGGER_2) .apiInfo(getApiInfo()) .directModelSubstitute(Timestamp.class, Integer.class) 能够与spring-boot-starter-swagger结合吗

` @ApiParam(value = "用户头像") @RequestParam(value = "avatar", required = false) MultipartFile[] avatar` 这样就接收不到参数

遇到一个很奇怪的问题。在本机上测试的一切正常,部署到阿里云上后,文档看不到了,提示 No operations defined in spec!

如果使用Docket,没有Contact节点会直接NullPointerException异常

@ConditionalOnProperty(name = "swagger.enabled",havingValue="true", matchIfMissing = true) 否则默认会加载配置的。 希望增加 /** * ALL 响应消息体 **/ List all = new ArrayList();