SpringBoot 整合swagger 版本的问题
spring framework版本SpringBoot2.2.6整合swagger2.2.2版本的问题,启动SpringBoot报如下错:解决办法:swagger2版本改为swagger2.9.2
1 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2 12:32:32.689 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter
3 ***************************
4 APPLICATION FAILED TO START
5 ***************************
6 Description:
7 Parameter 0 of method linkDiscoverers in org.fig.HateoasConfiguration required a single bean, but 15 w ere found:
8 - modelBuilderPluginRegistry: defined in null
9 - modelPropertyBuilderPluginRegistry: defined in null
10 - typeNameProviderPluginRegistry: defined in null
11 - documentationPluginRegistry: defined in null
12 - apiListingBuilderPluginRegistry: defined in null
13 - operationBuilderPluginRegistry: defined in null
14 - parameterBuilderPluginRegistry: defined in null
15 - expandedParameterBuilderPluginRegistry: defined in null
16 - resourceGroupingStrategyRegistry: defined in null
17 - operationModelsProviderPluginRegistry: defined in null
18 - defaultsProviderPluginRegistry: defined in null
19 - pathDecoratorRegistry: defined in null
20 - relProviderPluginRegistry: defined by method 'relProviderPluginRegistry' in class  path resource [org/springframework/hateoas/confi g/HateoasConfiguration.class ]
21 - linkDiscovererRegistry: defined in null
22 - entityLinksPluginRegistry: defined by method 'entityLinksPluginRegistry' in class  path resource [org/springframework/hateoas/confi g/WebMvcEntityLinksConfiguration.class ]
23
  Action:
24 Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
25 Process finished with exit code 1
<dependency >    <groupId >io.springfox </groupId >    <artifactId >springfox-swagger2</artifactId >   
<version >2.9.2</version ></dependency ><dependency >    <groupId >io.springfox </groupId >    <artifactId >springfox-swagger-ui </artifactId >    <version >2.9.2</version ></dependency >

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。