515-frameworks-micronaut-mongodb

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Micronaut — MongoDB

Micronaut — MongoDB

Apply Micronaut MongoDB guidance with concrete examples for design, implementation, and error handling.
通过具体示例应用Micronaut MongoDB的设计、实现和错误处理指导方案。

Constraints

约束条件

Compile before MongoDB refactors; verify after changes.
  • MANDATORY: Run
    ./mvnw compile
    or
    mvn compile
    before applying any change
  • SAFETY: If compilation fails, stop immediately
  • VERIFY: Run
    ./mvnw clean verify
    or
    mvn clean verify
    after applying improvements
  • BEFORE APPLYING: Read the reference for detailed rules and examples
在对MongoDB进行重构前先编译;变更后进行验证。
  • 强制要求:在进行任何变更前运行
    ./mvnw compile
    mvn compile
  • 安全准则:如果编译失败,立即停止操作
  • 验证步骤:在完成改进后运行
    ./mvnw clean verify
    mvn clean verify
  • 操作前须知:阅读参考文档以了解详细规则和示例

When to use this skill

何时使用此技能

  • Add MongoDB in Micronaut
  • Review Micronaut Mongo entities/repositories
  • Improve duplicate key handling, retries, or optimistic locking in Micronaut Mongo
  • 在Micronaut中添加MongoDB
  • 评审Micronaut Mongo实体/仓库
  • 改进Micronaut Mongo中的重复键处理、重试机制或乐观锁

Workflow

工作流程

  1. Read reference and assess project context
Read
references/515-frameworks-micronaut-mongodb.md
and inspect persistence setup before proposing changes.
  1. Gather scope and decide target improvements
Identify model and consistency requirements and define safe improvements.
  1. Apply framework-aligned changes
Implement/refactor documents, repositories, indexes, and error handling.
  1. Run verification and report results
Execute build/tests and summarize what changed, what was verified, and follow-up actions.
  1. 阅读参考文档并评估项目上下文
在提出变更前,先阅读
references/515-frameworks-micronaut-mongodb.md
并检查持久化设置。
  1. 收集范围并确定目标改进点
明确模型和一致性要求,定义安全的改进方案。
  1. 应用符合框架规范的变更
实现/重构文档、仓库、索引和错误处理逻辑。
  1. 执行验证并报告结果
执行构建/测试,总结变更内容、验证情况以及后续行动。

Reference

参考资料

For detailed guidance, examples, and constraints, see references/515-frameworks-micronaut-mongodb.md.
如需详细指导、示例和约束条件,请查看references/515-frameworks-micronaut-mongodb.md