From 407d07280282740790c97772f31c0b9e4557ffdd Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Tue, 6 Oct 2020 22:14:14 +0300 Subject: [PATCH] Add development properties; re-locate some properties Signed-off-by: Pekka Helenius --- .../main/resources/application-dev.properties | 6 ++++++ .../src/main/resources/application.properties | 20 ++++++++++--------- 2 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 bookstore/src/main/resources/application-dev.properties diff --git a/bookstore/src/main/resources/application-dev.properties b/bookstore/src/main/resources/application-dev.properties new file mode 100644 index 0000000..5d69b77 --- /dev/null +++ b/bookstore/src/main/resources/application-dev.properties @@ -0,0 +1,6 @@ +# Pekka Helenius , Fjordtek 2020 + +spring.h2.console.enabled = true +spring.h2.console.path = /h2-console +spring.datasource.url = jdbc:h2:mem:testdb +spring.jpa.show-sql = true \ No newline at end of file diff --git a/bookstore/src/main/resources/application.properties b/bookstore/src/main/resources/application.properties index 6fafbf7..945f063 100644 --- a/bookstore/src/main/resources/application.properties +++ b/bookstore/src/main/resources/application.properties @@ -1,19 +1,21 @@ # Pekka Helenius , Fjordtek 2020 +spring.profiles.active = dev + # Default HTTP TCP port number for this server application # Do not set this value below 1024 as these TCP/UDP ports are privileged, requiring root permissions -# -server.port=8080 -server.use-forward-headers=true +server.port = 8080 + +server.use-forward-headers = true + +# Native REST API URI +spring.data.rest.base-path = /api + + + -spring.h2.console.enabled=true -spring.h2.console.path=/h2-console -spring.datasource.url=jdbc:h2:mem:testdb -spring.jpa.show-sql=true -# REST API direct api URL ref -spring.data.rest.base-path=/api