515-frameworks-micronaut-mongodb
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMicronaut — 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 or
./mvnw compilebefore applying any changemvn compile - SAFETY: If compilation fails, stop immediately
- VERIFY: Run or
./mvnw clean verifyafter applying improvementsmvn clean verify - BEFORE APPLYING: Read the reference for detailed rules and examples
在对MongoDB进行重构前先编译;变更后进行验证。
- 强制要求:在进行任何变更前运行 或
./mvnw compilemvn compile - 安全准则:如果编译失败,立即停止操作
- 验证步骤:在完成改进后运行 或
./mvnw clean verifymvn 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
工作流程
- Read reference and assess project context
Read and inspect persistence setup before proposing changes.
references/515-frameworks-micronaut-mongodb.md- Gather scope and decide target improvements
Identify model and consistency requirements and define safe improvements.
- Apply framework-aligned changes
Implement/refactor documents, repositories, indexes, and error handling.
- Run verification and report results
Execute build/tests and summarize what changed, what was verified, and follow-up actions.
- 阅读参考文档并评估项目上下文
在提出变更前,先阅读并检查持久化设置。
references/515-frameworks-micronaut-mongodb.md- 收集范围并确定目标改进点
明确模型和一致性要求,定义安全的改进方案。
- 应用符合框架规范的变更
实现/重构文档、仓库、索引和错误处理逻辑。
- 执行验证并报告结果
执行构建/测试,总结变更内容、验证情况以及后续行动。
Reference
参考资料
For detailed guidance, examples, and constraints, see references/515-frameworks-micronaut-mongodb.md.
如需详细指导、示例和约束条件,请查看references/515-frameworks-micronaut-mongodb.md。