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