(转)搭建Springboot启动报错(An attempt was made to call the method reactor.retry.Retry.retryMax(I)Lreactor/r

[转载原因:springboot使用gson,报类似错误,结果是因为gson版本问题]

[转载原文:http://www.manongjc.com/article/24593.html]

本文章向大家介绍搭建Springboot启动报错(An attempt was made to call the method reactor.retry.Retry.retryMax(I)Lreactor/ret),主要包括搭建Springboot启动报错(An attempt was made to call the method reactor.retry.Retry.retryMax(I)Lreactor/ret)使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

 

  很明显,还没有启动成功就报错了.报错原因,很明显,说jar包的位置不对.网上关于这类的资料也不对,根本原因就是pom.xml文件中版本依赖有问题,比如你的项目依赖的是2.1.0版本的工程,你其他的子依赖,必须也是2.1.0。我报错的原因就是spring-boot-admin-starter-server的version版本是2.0.0没有和parent中的version对应。最后改成2.1.0就可以启动成功!

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.0.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

 <dependency>
            <groupId>de.codecentric</groupId>
            <artifactId>spring-boot-admin-starter-server</artifactId>
            <version>2.0.0</version>
  </dependency>

 完事,Springboot监控中心启动成功

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值