From 2013d609199c64d277b6e664677493704ba6db4c Mon Sep 17 00:00:00 2001 From: Micron818 Date: Fri, 24 Nov 2023 22:21:08 +0700 Subject: [PATCH] Update application.properties resolve the result miss error message, ex. curl --location --request GET 'localhost:8080/api/polls/0' { "timestamp": "2023-11-24T15:20:35.530+00:00", "status": 404, "error": "Not Found", "message": "Poll not found with id : '0'", "path": "/api/polls/0" } --- polling-app-server/src/main/resources/application.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/polling-app-server/src/main/resources/application.properties b/polling-app-server/src/main/resources/application.properties index ebac350..f21b83a 100644 --- a/polling-app-server/src/main/resources/application.properties +++ b/polling-app-server/src/main/resources/application.properties @@ -1,6 +1,7 @@ ## Server Properties server.port= 8080 server.compression.enabled=true +server.error.include-message=always ## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties) spring.datasource.url= jdbc:mysql://localhost:3306/polling_app?useSSL=false&serverTimezone=UTC&useLegacyDatetimeCode=false