MCP Java 2.2.0-M2:缺能力码 -32021 未进 handler
MCP Java SDK 2.2.0-M2 modern 工具声明 requiredCapabilities 后,客户端缺 elicitation.form 时 tools/call 在 handler 前返回 -32021;putAll 后写键覆盖。本次未调用外部模型。
记录技术探索,分享实践心得。
共 1966 篇文章MCP Java SDK 2.2.0-M2 modern 工具声明 requiredCapabilities 后,客户端缺 elicitation.form 时 tools/call 在 handler 前返回 -32021;putAll 后写键覆盖。本次未调用外部模型。
Spring Batch 6.1.0-RC1 新增 PageableItemReader,用 Function<Pageable, Slice<T>> / 方法引用替代 RepositoryItemReader 的 methodName 字符串反射。Boot 4.2.0-RC1 + Data JPA + H2 对照:pageSize=3、id 升序时两边都读出 11 条 Shanghai(chunk 3/3/3/2);错写 methodName 运行时 NoSuchMethodException,方法引用则编译期拦住。
生成式媒体 API Apiframe,把图像、视频、音乐等 70 多个模型收成一套版本化 REST,方便独立产品少养多家供应商账号、多接一条统一接口。TrustMRR 用 Stripe API 核验的页面写明:月经常收入 $35,661,活跃订阅 923,累计收入 $522,759,最近 30 天
Vert.x 5.2.3(2026-11-03)修 CVE-2026-118489:共享 CachingWebClient 不再把带 Authorization 的响应当普通可缓存内容塞进共享层。Spring Boot 4.1.2 对照:5.2.2 上 Bob 拿到 Alice 的 Bearer|UUID;5.2.3 各拿各的,session 私有缓存仍命中。
Elasticsearch 9.5.6(2026-11-02)起 composite 聚合 size≤0 解析阶段回 400;9.5.5 有匹配文档时是 CompositeValuesCollectorQueue.top() 的 500 NPE。官方镜像对照 + Boot 4.1.2 RestClient。
Spotless Maven Plugin 3.11.0(2026-11-02)默认抬 google-java-format 2.0.0,非空白 cleanup 会清掉多余分号、空注解括号、单参数 lambda 括号。Spring Boot 3.4.5 控制器实测:@Override() 与 (part)-> 被改写;cleanup=false 可关掉;格式化后 /hello 仍返回 HELLO-BOOT。
ADK Java 1.14.0 的 SpringAiToolset 把 Spring AI @Tool(returnDirect=true) 映射成 skipSummarization=true;同进程里 getTracking 还能经 adk_tool_context 写入 session state。本次未调用外部模型。
JDK-8390759:switch 的 when 守卫抛 IOException 时,JDK 27.0.1.0.3 能编过、try-catch 反而报 never thrown,运行时仍炸;28-ea+21-1707 要求 catch/throws,catch 能接到 boom。Spring Boot 4.1.2 + release 21 同结果。
Spring Batch 6.1.0-RC1 新增 @JobParameter,可在 job/step scope 上替代 @Value("#{jobParameters['…']}")。Boot 4.2.0-RC1 + H2 对照跑通:同参注入值一致、缺参为 null;去掉 StepScope 时抛 EL1008E,源码里注解会被翻译回同一条 SpEL。
Netty 4.2.20.Final(2026-11-02,同修 4.1.140.Final)修 HttpVersion 宽松解析:超大版本数字以前静默 int 溢出,H/9999999999.1 会变成 H/1410065407.1;现在抛 IllegalArgumentException。Spring Boot 4.1.2 默认仍是 4.2.19,需显式抬 netty.version。