Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 1 min read

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

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 automatic

VINAYAK GOTE
VINAYAK GOTE

Posted on Nov 9

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

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:

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.