springboot启动报错Logbook

springboot启动报错


APPLICATION FAILED TO START


Description:
Field logbookHttpRequestInterceptor in com.jiujiu.house.api.config.HttpClientAutoConfiguration required a bean of type ‘org.zalando.logbook.httpclient.LogbookHttpRequestInterceptor’ that could not be found.
Action:
Consider defining a bean of type ‘org.zalando.logbook.httpclient.LogbookHttpRequestInterceptor’ in your configuration.
Process finished with exit code 1
原因是pom没引logbook

<properties>
                      <logbook.version>1.3.0</logbook.version> 
</properties>

 <dependency>
                <groupId>org.zalando</groupId>
                <artifactId>logbook-core</artifactId>
                <version>${logbook.version}</version>
    </dependency>
    <dependency>
                <groupId>org.zalando</groupId>
                <artifactId>logbook-servlet</artifactId>
                <version>${logbook.version}</version>
  </dependency>
            <dependency>
                <groupId>org.zalando</groupId>
                <artifactId>logbook-httpclient</artifactId>
                <version>${logbook.version}</version>
  </dependency>
            <dependency>
                <groupId>org.zalando</groupId>
                <artifactId>logbook-spring-boot-starter</artifactId>
                <version>${logbook.version}</version>
  </dependency>
发布了7 篇原创文章 · 获赞 0 · 访问量 1246

猜你喜欢

转载自blog.csdn.net/weixin_32896095/article/details/84147691