<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Springboot中BaseHttpSolrClient報NoClassDefFoundError問題

      SpringBoot升級之后, 被項目里面的solr坑了一把

      SpringBoot目前版本: 2.3.9-RELEASE
      Solrj版本: 7.7.3

      因為是另一個同事升級的, 然后現在我負責上線了, 結果發測試環境的時候報BaseHttpSolrClient 這個類沒定義

      查了一圈 發現 BaseHttpSolrClient 這個類是solr8.x里面的API, 但是我明明用的是7.7.3, 為什么啟動的時候會去加載這個配置?

      然后發現那同事加了一個springboot-actuator在里面, 啟動的時候會對solr做一個健康檢查, 然后健康檢查用是那個actuator指定的solr版本(這里沒有詳細去研究)

      解決方式:

      1. 自定義Solr的健康檢查

      2. 在啟動類@SpringBootApplication里面排除Solr健康檢查自動配置
          

      @SpringBootApplication(exclude = {SolrHealthContributorAutoConfiguration.class})
      public class Application {
      	public static void main(String[] args) throws Exception {
      		SpringApplication.run(Application.class, args);
      	}
      
      }

      org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext >> Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'documentationPluginsBootstrapper' defined in URL !/BOOT-INF/lib/springfox-spring-web-2.9.2.jar!/springfox/documentation/spring/web/plugins/DocumentationPluginsBootstrapper.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webMvcRequestHandlerProvider' defined in URL [jar:file:/app/health-api/bin/health-api-feature_8.8-5125b190-20220609161601-8.8.0-SNAPSHOT.jar!/BOOT-INF/lib/springfox-spring-web-2.9.2.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webEndpointServletHandlerMapping' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/servlet/WebMvcEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping]: Factory method 'webEndpointServletHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrHealthContributor' defined in class path resource [org/springframework/boot/actuate/autoconfigure/solr/SolrHealthContributorAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributor]: Factory method 'solrHealthContributor' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/solr/client/solrj/impl/BaseHttpSolrClient$RemoteSolrException

      posted @ 2022-06-09 17:05  你啊347  閱讀(490)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 久久不见久久见中文字幕免费| 国产成人精品日本亚洲直播| 欧美性群另类交| 人人爽天天碰天天躁夜夜躁| 一级片一区二区中文字幕| 蜜桃一区二区三区在线看| 中文午夜乱理片无码| 无码帝国www无码专区色综合| 精品一区二区三人妻视频| 色伦专区97中文字幕| 四虎精品国产永久在线观看| 日本亚洲一区二区精品| 91精品91久久久久久| 国内少妇偷人精品免费| 亚洲最大日韩精品一区| 精品少妇人妻av无码专区| 粉嫩一区二区三区粉嫩视频 | 亚洲欧洲色图片网站| 亚洲欧洲日产国产av无码| 亚洲无av中文字幕在线| 少妇午夜啪爽嗷嗷叫视频| 国产明星精品无码AV换脸| 精品欧美h无遮挡在线看中文| 久久精品国产熟女亚洲av| 久久五月丁香激情综合| 亚洲国产午夜精品福利| 久久妇女高潮喷水多| 国精品午夜福利视频不卡| 磐石市| 插入中文字幕在线一区二区三区| 亚洲悠悠色综合中文字幕| 久久久这里只有精品10| 极品少妇的粉嫩小泬视频| 国产偷拍自拍视频在线观看| 东方四虎av在线观看| 国产一区二区三区韩国| 亚洲精品一二三四区| 亚洲国产成人综合自在线| 人妻中文字幕亚洲一区| 凤城市| 色九九视频|