SpringForAll / spring-boot-starter-swagger

自制spring boot starter for swagger 2.x,来试试吧,很好用哦~
Apache License 2.0
2.13k stars 523 forks source link

springcloud 下 监听器报错 #42

Closed NotFound403 closed 6 years ago

NotFound403 commented 6 years ago

Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2/api-docs then the base url is http://example.org/api/. Please enter the location manually:

NotFound403 commented 6 years ago

1.5.1 无法使用配置 还是 好好测试再上 根据 spring boot 官方约定 非官方项目 最好 项目名+springboot +starter

aaronwong1989 commented 6 years ago

遇到了同样的问题,想问一下解决了没?

NotFound403 commented 6 years ago

没有 不过这个 我自己写了starter 所以 自己玩了 不用他们搞的了

dyc87112 commented 6 years ago

可否提供一下具体的错误场景, @aaronwong1989 @NotFound403

NotFound403 commented 6 years ago

springcloud 集成 引入会报这个错误 版本 D.SR4

aaronwong1989 commented 6 years ago

@dyc87112 是因为没加 @EnableSwagger2Doc 。。。我的已经没问题了。

dyc87112 commented 6 years ago

@aaronwong1989 了解,姿势问题,哈哈