- Add BaseAuditPO with audit fields (createUserId, updateUserId, createTime, updateTime, deleted, version)
- Implement MapStruct for Order ↔ OrderPO mapping with @BeanMapping(ignoreByDefault=true)
- Create RedisCacheConfig with conditional loading (app.cache.enabled=true)
- Create RedisLockService with SET NX EX distributed locking
- Add Redis profile configuration (application-redis.yml)
- Update OrderAppService with @Cacheable/@CacheEvict annotations
- Create comprehensive integration tests for cache and lock functionality
- Update docker-compose.yml to include Redis service
- Update application-dev.yml to include redis profile
- Add proper error handling and tenant isolation for cache keys
- Follow M2 v5 frozen contracts for audit trail and persistence layer
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Create parent POM with multi-module structure
- Set up four modules: tmpl-domain, tmpl-application, tmpl-infrastructure, tmpl-api
- Configure Spring Boot 3.4.1 with Java 21
- Add application configurations for dev/staging/prod
- Set up logging with structured JSON output
- Configure database with PostgreSQL and Flyway
- Add security configuration with minimal setup
- Include docker-compose for local development
- Add all necessary build and dependency management plugins
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>