springboot admin客户端报错

今天给项目搭建了个springboot-admin,一直报错,,经过查找,怀疑是版本不一致原因,经过测试,admin-server的版本要低于等于admin-client的版本,否则会无法注册进服务,报错如下

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registrator' defined in class path resource [de/codecentric/boot/admin/client/config/SpringBootAdminClientAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.codecentric.boot.admin.client.registration.ApplicationRegistrator]: Factory method 'registrator' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.boot.web.client.RestTemplateBuilder.setConnectTimeout(Ljava/time/Duration;)Lorg/springframework/boot/web/client/RestTemplateBuilder;
springboot admin客户端报错_第1张图片

你可能感兴趣的:(Java开发)