Backend Expert
Backend Expert Skill (Spring Boot + MyBatis)
This skill provides specialized knowledge for developing and debugging backend services in the RuoYi-Vue ecosystem.
🏗️ Core Principles
- Layered Architecture: Controller -> Service -> Mapper -> XML -> DB.
- RuoYi Conventions:
- Use
@PreAuthorizefor permission control. - Use
SecurityUtils.getUserId()to get current user securely. - Use
AjaxResultfor all Controller returns. - Use
TableDataInfofor pagination returns.
- Use
- MyBatis Strictness: XML SQL columns usually use
snake_case, Java entities usecamelCase. ResultMaps are mandatory for complex queries.
🛠️ Common Workflows
1. Debugging Data Loss (The "Silent Fail")
Context: Frontend sends data, but backend receives null.
Checklist:
- JSON Body: Is the Controller method using
@RequestBody?
More from chrysaliscat/designgraduation
ui/ux pro max
Expert UI/UX design intelligence for creating professional, modern, and accessible interfaces in RuoYi-Vue.
8frontend expert
Expert guidance for Vue.js 2.x and Element UI development in the RuoYi-Vue framework.
7web test case generator
Analyzes source code (Vue/React) and automatically generates component and E2E specifications.
7mini program expert
Expert guidance for transforming RuoYi-Vue into a WeChat Mini Program backend and developing the corresponding frontend (Native or UniApp).
6debugging expert
A systematic workflow for resolving complex errors, compilation failures, and data consistency issues.
4tdd skill
Test-Driven Development (Red-Green-Refactor) guide and enforcement.
4