A Spring Boot Startup Crash Caused by One Missing Class (and the Git Mistake I Made Fixing It)

2026-11-09来源 dev.to JavaEnglish

This is a Spring Boot lesson from open source: a small bug, a small fix, and a mistake of my own that taught me something about Git.

The bug

Logbook has a Spring Boot starter that sets everything up automatically. One of the things it registered was a LogbookClientHttpRequestInterceptor bean, every time.

That interceptor depends on a class from spring-web. So if your app used logbook-spring-boot-starter with another HTTP client (OkHttp or Apache HttpClient, for example) and did not have spring-web on the classpath, the app crashed at startup:

原文:https://www.a8q9.cn/en/article/a-spring-boot-startup-crash-caused-by-one-missing-class-and-the-git-mistake-i-ma-cfb72a.html

相关文章