From 0c9a4239d284a04833154c50b47fd71ab2c4505e Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Thu, 22 Oct 2020 11:42:21 +0300 Subject: [PATCH] Do not expose management end points in production environment Signed-off-by: Pekka Helenius --- bookstore/src/main/resources/application-prod.properties | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bookstore/src/main/resources/application-prod.properties b/bookstore/src/main/resources/application-prod.properties index a983d9d..445a949 100644 --- a/bookstore/src/main/resources/application-prod.properties +++ b/bookstore/src/main/resources/application-prod.properties @@ -12,4 +12,8 @@ security.book.count.max = 5 # Enable sample data in production environment? # This is the same dataset than used in dev profile # -db.sample.data.enabled = true \ No newline at end of file +db.sample.data.enabled = true + +# Do not expose statistics end points +# +management.endpoints.enabled-by-default = false \ No newline at end of file