feat: add Java/Spring Boot and AI agent docs (first Java content)#193
Open
rkp4u wants to merge 1 commit intoandrewyng:mainfrom
Open
feat: add Java/Spring Boot and AI agent docs (first Java content)#193rkp4u wants to merge 1 commit intoandrewyng:mainfrom
rkp4u wants to merge 1 commit intoandrewyng:mainfrom
Conversation
… context-hub Add 8 curated documentation entries for the Java ecosystem, filling a major gap in context-hub's coverage (previously zero Java content). Spring Boot ecosystem (6 entries): - spring-boot/package: Core setup, DI, profiles, configuration properties - spring-boot/rest-api: Controllers, validation, ProblemDetail, OpenAPI - spring-security/package: SecurityFilterChain, JWT, OAuth2, CORS (6.x) - spring-data/jpa: Repositories, queries, pagination, N+1 solutions - hibernate/package: Entity mapping, fetch strategies, Hibernate 5→6 migration - junit/testing: JUnit 5, Mockito, MockMvc, test slicing, Testcontainers AI agent tooling (2 entries): - langchain4j/package: ChatModel, AI Services, tools, RAG, Spring Boot starter - langgraph4j/package: StateGraph, agent patterns, checkpointing, Spring Boot integration All docs focus on preventing common AI agent hallucinations by clearly marking deprecated/removed APIs (WebSecurityConfigurerAdapter, javax.persistence, ChatLanguageModel→ChatModel, @MockBean→@MockitoBean, springfox, etc.). Validated with: chub build content/ --validate-only (1561 docs, 0 errors) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds 8 curated documentation entries for the Java ecosystem — the first Java content in context-hub. This fills a major gap: the registry previously had zero Java coverage despite Java being one of the most widely used enterprise languages.
Spring Boot Ecosystem (6 entries)
spring-boot/package— Core setup, dependency injection, profiles,@ConfigurationProperties, actuatorspring-boot/rest-api— Controllers, bean validation,ProblemDetail(RFC 7807), exception handling, springdoc-openapispring-security/package—SecurityFilterChain(6.x), JWT auth, OAuth2 Resource Server, CORS, method securityspring-data/jpa— Repository patterns, query methods, pagination, N+1 solutions,@Transactional, auditing, specificationshibernate/package— Entity mapping, fetch strategies, second-level cache, Hibernate 5→6 migration guidejunit/testing— JUnit 5, Mockito,@MockitoBean(Boot 3.4+), MockMvc, test slicing,@ServiceConnectionwith TestcontainersAI Agent Tooling for Java (2 entries)
langchain4j/package—ChatModel, AI Services, tool use (@Tool/@P), RAG, structured output, Spring Boot auto-configlanggraph4j/package—StateGraphAPI, channels, agent patterns (ReAct, Supervisor, Plan-and-Execute, Swarm), Spring Boot integrationWhy This Matters for AI Agents
Every doc emphasizes what agents get wrong — clearly marking deprecated/removed APIs with "CRITICAL: Do NOT use" sections:
WebSecurityConfigurerAdapter→SecurityFilterChain(removed in Security 6)javax.persistence.*→jakarta.persistence.*(Hibernate 6 / Jakarta EE)antMatchers()→requestMatchers()(removed in Security 6)@MockBean→@MockitoBean(deprecated in Boot 3.4)springfox→springdoc-openapi(springfox is abandoned)ChatLanguageModel→ChatModel,.generate()→.chat()(LangChain4j 1.0 GA renames)Validation
chub build content/ --validate-only→ 1561 docs, 7 skills, 0 errorsTest plan
chub build content/ --validate-onlypasses🤖 Generated with Claude Code