Posts

Showing posts with the label 微服务架构

A New Collection of Thoughtful Learning Apps — Now Available on iOS & Android

Image
I’m excited to share a set of mobile apps I’ve recently completed and published on both the Google Play Store and the Apple App Store. These apps are designed with a simple goal in mind: to make meaningful, structured content more accessible, whether you’re studying theology or improving your English vocabulary. 📱 Now Available on Both Platforms All apps are live and available for download: Google Play Developer Page: https://play.google.com/store/apps/dev?id=5835943159853189043 Apple App Store Developer Page: https://apps.apple.com/ca/developer/q-z-l-corp/id1888794100 📖 Theology & Confession Study Apps For those interested in Reformed theology and classical Christian teachings, I’ve developed a series of apps that present foundational texts in a clean, focused reading format: The Belgic Confession Canons of Dort Heidelberg Catechism Westminster Shorter Catechism Each app is designed to provide a distraction-free experience, making it easier to read, reflect, and revisit these im...

Spring Boot 4 升级踩坑指南:Java 21、Jakarta、Jackson 3 和 Copilot 自动升级

Image
Spring Boot 4 升级踩坑指南:Java 21、Jakarta、Jackson 3 和 Copilot 自动升级 Spring Boot 4 已经发布,很多团队开始计划将系统升级到 Java 21 与 Spring Boot 4.0.3 。 然而在实际升级过程中,开发者会遇到很多问题,例如: Jakarta 包迁移导致编译失败 Jackson 3 导致 JSON 反序列化变化 Spring Cloud Gateway 配置结构变化 测试依赖和注解迁移 Observability / Micrometer 监控异常 本文总结了一套 企业级 Spring Boot 4 升级流程 , 并介绍如何使用 GitHub Copilot Agent 自动生成升级 PR。 目录 为什么升级 Spring Boot 4 升级总体策略 使用 Copilot 自动升级 Java 21 升级 Spring Boot 4 升级 Jakarta 迁移 Jackson 3 变化 Spring Cloud Gateway 配置变化 常见踩坑 升级验证 Checklist 为什么升级 Spring Boot 4 Spring Boot 4 带来了多个重要变化: 默认支持 Java 21 Jakarta API 全面替换 javax Jackson 3 JSON 生态升级 Micrometer Observability 改进 Spring Security 现代 DSL 对于长期维护的系统来说,升级可以获得: 更好的性能 更安全的依赖 更好的云原生支持 升级总体策略 升级应该按阶段进行: 升级 Java 升级 Spring Boot 进行 Jakarta 迁移 依赖版本对齐 修复配置变化 修复测试 验证运行 每一步都必须 编译 + 测试 + 启动验证 。 使用 Copilot 自动升级 对于大型代码库,手动升级非常耗时。 GitHub Copilot Agent 可以自动分析项目结构, 并生成完整升级 Pull Request。 推荐 Prompt Goal: Upgrade this project ...

Spring Boot 4 升级指南(使用 GitHub Copilot Agent)

Image
Spring Boot 4 升级指南(使用 GitHub Copilot Agent) 将系统升级到 Java 21 和 Spring Boot 4.0.3 并不仅仅是简单地修改依赖版本, 而是需要一个结构化的迁移策略,以确保系统行为保持稳定,并与新的生态系统兼容。 本文提供一个适用于企业级 Spring 服务的升级流程, 结合官方迁移指南与 GitHub Copilot Agent 自动化能力, 帮助团队安全、高效地完成框架升级。 升级目标 升级至 Java 21 升级至 Spring Boot 4.0.3 对齐兼容的 Spring Cloud 版本 保持现有业务逻辑不变 继续使用 Maven 构建 确保项目可编译、测试通过并能够正常启动 升级原则 保持系统原有行为 不要删除业务逻辑 只做必要且正确的修改 遵循官方迁移指南 分阶段升级并逐步验证 官方迁移参考 所有升级操作应参考 Spring 官方迁移指南: Spring Boot 4.0 Migration Guide 使用 GitHub Copilot Agent 自动升级 对于大型代码库,使用 GitHub Copilot Agent 可以自动生成结构化的升级 Pull Request, 显著减少人工升级的复杂度。 推荐在 Agent Session 中使用高级模型(例如 Claude Opus)以获得更稳定的升级结果。 标准升级 Prompt Goal: Upgrade this service to Java 21 and Spring Boot 4.0.3. Constraints: - Preserve behavior - Keep Maven build - Do NOT remove business logic - Ensure build and tests pass Tasks: 1. Upgrade Java 2. Upgrade Spring Boot 3. Perform Jakarta migration 4. Align dependencies 5. Update configuration 6. Fix tests 7. Verify build an...