Fix DB driver auto-detection and unmapped path error handling #65

Closed
devitq wants to merge 2 commits from fix/db-driver-and-root-404-8991661738374819991 into develop
2 Commits
Author SHA1 Message Date
google-labs-jules[bot]anddevitq 09393a1bd0 Fix DB driver auto-detection, root 404, and linting
- Removed hardcoded `driver-class-name` from `application.yaml` to fix production startup failure with PostgreSQL.
- Handled `NoResourceFoundException` in `ApiExceptionHandler` to return 404 for unmapped paths (like `/`).
- Fixed import ordering in `ApiExceptionHandler.kt` to satisfy `ktlint`.
- Added `NotFoundControllerTest` to verify fix.

Co-authored-by: devitq <118541411+devitq@users.noreply.github.com>
2026-05-22 18:27:33 +00:00
google-labs-jules[bot]anddevitq cc02ccac01 Fix production DB driver issue and root path 500 error
- Removed hardcoded `driver-class-name` from `application.yaml` to enable Spring Boot's driver auto-detection, fixing the startup failure in production where H2 driver was being used with a PostgreSQL URL.
- Updated `ApiExceptionHandler` to handle `NoResourceFoundException`, ensuring that unmapped paths (like `/`) return a 404 Not Found response instead of a 500 Internal Server Error.
- Added `NotFoundControllerTest` to verify the fix.

Co-authored-by: devitq <118541411+devitq@users.noreply.github.com>
2026-05-22 18:22:59 +00:00