Hacker News new | past | comments | ask | show | jobs | submit login

My experience, from memory; a few of the details might be wrong (e.g. it probably wasn't Redis, but it was some kind of datastore) but the basic experience is what happened:

Q: Why does my webapp run on most of our tomcats but not this one?

A: That tomcat server has the redis client libraries on the classpath, so Spring Boot automatically started up a connection pool connecting to localhost on the default port, and automatically includes that in the healthcheck endpoint. Since redis isn't actually running there, it fails to connect, so the healthcheck always fails and the app never shows as running, even though your code is working fine.

Q: How do I turn that off?

A: Upgrade to the next version of Spring boot and then add this undocumented annotation to your configuration

Q: How was I supposed to figure any of that out?

A: Hahaha fuck you

Spring proper is fine, useful even. Spring boot is an absolute nightmare of COME FROM style incomprehensibility.




Thanks for the example, I feel you. That's the essence of what I'm criticising. People go on about me being incompetent and not having read the documentation never seemed to have had this issues. I sometimes feel like even the spring devs don't understand what they're doing anymore.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: