Browse Source

Add development properties; re-locate some properties

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.3-alpha
Pekka Helenius 4 years ago
parent
commit
407d072802
2 changed files with 17 additions and 9 deletions
  1. +6
    -0
      bookstore/src/main/resources/application-dev.properties
  2. +11
    -9
      bookstore/src/main/resources/application.properties

+ 6
- 0
bookstore/src/main/resources/application-dev.properties View File

@ -0,0 +1,6 @@
# Pekka Helenius <fincer89@hotmail.com>, 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

+ 11
- 9
bookstore/src/main/resources/application.properties View File

@ -1,19 +1,21 @@
# Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020 # Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
spring.profiles.active = dev
# Default HTTP TCP port number for this server application # 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 # 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


Loading…
Cancel
Save