Spring Boot 4.2 migrator 一收紧,旧配置键就把进程挂了
升到 Boot 4.2.0-RC1 仍带着 logging.path、spring.application.index;把 spring.properties.migrator.fail 收到 on-error/on-warning 后进程以 IllegalStateException 退出 1,默认 never 只警告仍能启动。
围绕 spring 的技术文章与经验分享。
共 585 篇文章升到 Boot 4.2.0-RC1 仍带着 logging.path、spring.application.index;把 spring.properties.migrator.fail 收到 on-error/on-warning 后进程以 IllegalStateException 退出 1,默认 never 只警告仍能启动。
接 Claude、DeepSeek、Gemini 这类带 thinking 的模型,再挂上工具调用时,下一轮请求必须把上一轮的思考块、签名或加密内容按原顺序原样送回去。官方博客 Spring AI 2.1 Message Parts: Reasoning That Survives the Roun
升到 Spring Boot 4.2.0-RC1,Docker Compose 里想给 MySQL 开随机 root 密码、给 RabbitMQ 设非默认 vhost。Service Connection 到底吃哪组账号、virtual-host 会不会还停在 /?结论先说:随机 root 时 Bo
Spring Framework 7.1.0-RC1(Boot 4.2.0-RC1)MultipartHttpMessageConverter:RestClient 把 multipart/form-data 解成 MultiValueMap,读到 fieldPart 与 logo.txt;只留 FormHttp 时抛 UnknownContentTypeException。
jwk-set-uri 已设、issuer-uri=${ISSUER_URI:} 落成空串时,Boot 4.1.1 仍挂 JwtIssuerValidator,带正常 iss 的 JWT 回 401;4.1.2 改为 hasText 才校验,同令牌 200。对应 #52260。
JPA 4.2.0-RC1 对静态 DTO 投影做启动校验:错字段 fail-fast;同代码在 4.2.0-M2 能启动,调用才 500。
Boot 4.2.0-RC1 + Cloud 2026.0.0-RC1:Config Client 开 OAuth2 后拉到 demo.message;关闭则对 Config Server 得 401 并 fail-fast。
Security 7.2.0-RC1 支持 CSP {nonce}:响应头与 script nonce 一致时 Chrome 执行内联脚本(ALLOWED),缺失或填错时停在 PENDING 并报 CSP blocked。
Spring Framework 7.1.0-RC1 把 RestTemplate 标成 @Deprecated(since="7.1", forRemoval=true),-Xlint:deprecation 编译会报警;同版本 RequestMethod.QUERY 支持带 body,form 与 JSON 均回 200,同路径 GET/POST 是 405 且 Allow: QUERY。用 Boot 4.2.0-RC1(绑 7.1.0-RC1)实测,对照 Boot 4.1.1(7.0.9)无弃用警告、也无 QUERY 常量。
Boot 4.2.0-RC1 默认 build-image 拉的是 ubuntu-resolute-builder,基线 Ubuntu 26.04;默认可选的 spring-cloud-bindings 2.0.4 会因已删除的 env.EnvironmentPostProcessor 启动失败。