renren-cloud 3.0.0文档聚合获取不到子模块文档,监控启动报错

提问 已结 2 150
Tank
Tank 2020-10-24
悬赏:20积分
版本:renren-cloud 3.0.0 开发环境:jdk8,idea
1.文档聚合访问失败: java.lang.NullPointerException: null at com.hawkeye.swagger.SwaggerProvider.get(SwaggerProvider.java:35) at com.hawkeye.swagger.SwaggerProvider.get(SwaggerProvider.java:25) at com.hawkeye.swagger.SwaggerHandler.swaggerResources(SwaggerHandler.java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 2.监控项目启动报错: Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: de.codecentric.boot.admin.server.web.reactive.AdminControllerHandlerMapping.registerHandlerMethod(AdminControllerHandlerMapping.java:50) The following method did not exist: org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping.registerHandlerMethod(Ljava/lang/Object;Ljava/lang/reflect/Method;Lorg/springframework/web/reactive/result/method/RequestMappingInfo;) The method's class, org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping, is available from the following locations: jar:file:/D:/maven/repository/org/springframework/spring-webflux/5.1.16.RELEASE/spring-webflux-5.1.16.RELEASE.jar!/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerMapping.class It was loaded from the following location: file:/D:/maven/repository/org/springframework/spring-webflux/5.1.16.RELEASE/spring-webflux-5.1.16.RELEASE.jar Action: Correct the classpath of your application so that it contains a single, compatible version of org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping
回帖
  • 文档聚合不会有问题,演示环境也是好的,是不是修改了什么造成的
    0
  • Tank
    Tank (楼主)
    2020-10-24
    @Mark @ConfigurationProperties("renren.swagger"),这个属性,是怎么加载系统文件的,每个项目名称统一修改了前缀,hawk-eye-admin-server;
    0
本帖已结贴