Skip to main content

Consumer-Driven Contract Testing in Spring Boot 4.2: Spring Cloud Contract vs Pact (and Stubborn Contract)

Producer and consumer builds on Spring Boot 4.2, run for real with Spring Cloud Contract 5.0.3, Stubborn Contract 0.2.4 and Pact JVM 4.7.7: stubs, pact files, CI order, and four producer changes compared across both tools. Includes the Boot 4.2 REST Assured trap and the news that Spring Cloud Contract has left the Spring Cloud release train.

AI Release Notes and PR Descriptions in Java: JGit, Spring AI and Gitea

Build a release-notes and pull-request description generator in Java: JGit reads real commits, plain code groups them by Conventional Commit type and computes the version bump, a Spring AI model writes one paragraph behind a guard that rejects invented hashes and PR numbers, and a Gitea client publishes idempotently. Tested on a real JGit repository with a stub model.

Quarkus LangChain4j vs Spring AI: Same AI Service Built Twice

The same support assistant (system prompt, one tool, RAG over three files) built with Quarkus 3.40 + LangChain4j 1.15 and Spring Boot 4.2 + Spring AI 2.1, run against a stub OpenAI server. Wire-format differences, Dev UI, startup and memory medians, a Quarkus native image, and a Spring native build that ran out of memory.

Hibernate Vector Module: pgvector Similarity Search in HQL and Spring Data JPA

Map float[] embeddings with hibernate-vector 7.4.17, run cosine and L2 similarity search in HQL, Criteria and Spring Data JPA 4.2 on pgvector 0.8.7, prove with auto_explain when the HNSW index is used, and see four ways it silently is not. Includes recall vs ef_search measurements and a comparison with Spring AI PgVectorStore. Every output is from a committed test transcript.

Java Modules (JPMS) for Working Developers: module-info, exports, opens and jdeps

Why the Java module system exists and how to read its errors: module-info.java, exports versus opens (with the exact InaccessibleObjectException text), requires transitive, services, split packages, automatic modules, the class path as the unnamed module, jdeps and jlink, every transcript captured on JDK 25 (Temurin 25.0.5.1).