Spring Cloud Feign 启动UnsatisfiedDependencyException - Go语言中文社区

Spring Cloud Feign 启动UnsatisfiedDependencyException


在加入Swagger之后启动就报错了,由此可知肯定是冲突了

错误信息如下:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 

我目前的版本如下:

 <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.4.RELEASE</version>
        <relativePath/>
 </parent>

 <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Dalston.SR1</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
 </dependencyManagement>

swagger 是自己封装的starter,spring-boot-starter-swagge

版本如下:

<properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <springfox.version>2.2.2</springfox.version>
</properties>
<dependency>
     <groupId>io.springfox</groupId>
     <artifactId>springfox-swagger2</artifactId>
     <version>${springfox.version}</version>
 </dependency>
 <dependency>
     <groupId>io.springfox</groupId>
     <artifactId>springfox-swagger-ui</artifactId>
     <version>${springfox.version}</version>
 </dependency>

版本比较低,只要是升级到<springfox.version>2.5.0</springfox.version>就可以了

欢迎加入我的知识星球,一起交流技术,免费学习猿天地的课程(http://cxytiandi.com/course)

PS:目前星球中正在星主的带领下组队学习Sentinel,等你哦!

微信扫码加入猿天地知识星球

猿天地

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/u010889990/article/details/78778971
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢