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>