# springboot_ddd_dive **Repository Path**: enzoism/springboot_ddd_dive ## Basic Information - **Project Name**: springboot_ddd_dive - **Description**: spriingboot-ddd4层架构 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-08-26 - **Last Updated**: 2026-08-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Springboot-Mysql-Transaction > DDD-4层架构 + Springboot + Mysql + Transaction ## 快速开始 ### 1. 启动应用 ```bash mvn spring-boot:run ``` 服务端口:`8075` ### 2. 初始化数据库 ```sql CREATE DATABASE dev_test_temp; -- 执行 src/main/resources/sql/scores.sql ``` ### 3. 测试接口 ```bash # 查看初始数据 curl http://localhost:8075/service/list # 测试场景三(核心验证) curl -X POST http://localhost:8075/service/reinsert/sql \ -H "Content-Type: application/json" \ -d '{"id": 1, "name": "xiao1", "chinese": 100, "maths": 50}' # 再次查询验证数据是否回滚 curl http://localhost:8075/service/detail/1 ```