Add crud-mysql module: Spring Boot 4.1 CRUD API on a real MySQL 8.4.6 with JPA, Flyway, validation and ProblemDetail errors

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HhW8LD8r3EigoBaCGrQZx5

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HhW8LD8r3EigoBaCGrQZx5
This commit is contained in:
Claude
2026-10-21 16:43:45 +00:00
parent ba709737de
commit 2996628ff1
27 changed files with 968 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# A MySQL 8.4 server for the application's defaults (database library, user library, password library).
#
# docker compose up -d
#
# NOT RUN when this module was written: the sandbox had no Docker. The captured output in output/ came from
# MySQL Community Server 8.4.6 started directly from the official tarball with the same database, user and
# password. If the compose file fails on your machine, `scripts/mysql-setup.sql` does the same thing by hand.
services:
mysql:
image: mysql:8.4
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: rootpw
MYSQL_DATABASE: library
MYSQL_USER: library
MYSQL_PASSWORD: library
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-plibrary", "-ulibrary"]
interval: 5s
timeout: 3s
retries: 20