spring-boot-starter-swagger
spring-boot-starter-swagger copied to clipboard
自制spring boot starter for swagger 2.x,来试试吧,很好用哦~
// 取消使用默认预定义的响应消息,并使用自定义响应消息 swagger.apply-default-response-messages=false swagger.global-response-message.get[0].code=401 swagger.global-response-message.get[0].message=401get swagger.global-response-message.get[1].code=500 swagger.global-response-message.get[1].message=500get swagger.global-response-message.get[1].modelRef=ERROR swagger.global-response-message.post[0].code=500 swagger.global-response-message.post[0].message=500post swagger.global-response-message.post[0].modelRef=ERROR 若我的状态码过多,是否能通过代码实现,如何实现?能否分页?希望加上此功能,谢谢!
集成到gateway,引入webflux、web包,设为WebApplicationType.REACTIVE后依旧报错 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'documentationPluginsBootstrapper' defined in URL [jar:file:/D:/Java/repository/io/springfox/springfox-spring-web/2.8.0/springfox-spring-web-2.8.0.jar!/springfox/documentation/spring/web/plugins/DocumentationPluginsBootstrapper.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webMvcRequestHandlerProvider' defined...
关于全局响应码的问题。当取消全局配置时,而且未手动设置全局响应码,会报空指针异常。
尊敬的作者,如题。目前我测试发现可以为全局指定一个固定的header,但是如果我有些特殊接口不需要时,又如何处理呢。如果已有此功能,请指点。

@ApiOperation(value = "添加用户", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) @ApiImplicitParam(name = "name", value = "名字", required = true, paramType = "query", dataType = "String") @GetMapping(value = "index", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) public String index(@RequestParam...
利用 spring-boot-starter-data-rest暴露jpa接口后,swagger看不到相关API http://localhost:9003/rest/repo/browser/index.html#/rest/repo 可以看到HAL BROWSER,并且可以查询出结果  http://localhost:9003/swagger-ui.html#/ swagger能看到正常的RestController暴露的API,但是看不到spring-boot-starter-data-rest暴露的接口  按照stackoverflow上若干整合 加上 springfox-data-rest也不起作用 https://stackoverflow.com/questions/22340357/swagger-with-spring-data-rest @Import(SpringDataRestConfiguration.class) https://reflectoring.io/documenting-spring-data-rest-api-with-springfox/ 这样会抛错误 `org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NoSuchMethodError: org.springframework.data.repository.support.Repositories.getRepositoryInformationFor(Ljava/lang/Class;)Lorg/springframework/data/repository/core/RepositoryInformation;` 相关配置: swagger.base-path=/** spring.data.rest.base-path=/rest/repo...
请问有打算支持 swagger.globalOperationParameters[0].defaultValue 的设置吗?
项目使用的springboot+gradle,将spring-boot-starter-swagger加入项目后,访问http://localhost:8000/swagger-ui.html结果出现No operations defined in spec!,请问一下是哪里没配置对吗?麻烦指点一下,谢谢。