From 09393a1bd0f2f6d6948bac1c7444da22d59241ce Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 22 May 2026 18:27:33 +0000 Subject: [PATCH] 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> --- .../com/project/movienight/adapters/web/ApiExceptionHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/project/movienight/adapters/web/ApiExceptionHandler.kt b/src/main/kotlin/com/project/movienight/adapters/web/ApiExceptionHandler.kt index 47e232c..0d9a087 100644 --- a/src/main/kotlin/com/project/movienight/adapters/web/ApiExceptionHandler.kt +++ b/src/main/kotlin/com/project/movienight/adapters/web/ApiExceptionHandler.kt @@ -11,8 +11,8 @@ import org.springframework.web.bind.MethodArgumentNotValidException import org.springframework.web.bind.annotation.ExceptionHandler import org.springframework.web.bind.annotation.ResponseStatus import org.springframework.web.bind.annotation.RestControllerAdvice -import org.springframework.web.servlet.resource.NoResourceFoundException import org.springframework.web.server.ResponseStatusException +import org.springframework.web.servlet.resource.NoResourceFoundException @RestControllerAdvice class ApiExceptionHandler {