mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 09:05:50 +00:00
Added application properties for Azure Spring Apps and PostgreSQL service connector.
This commit is contained in:
parent
6e71aaa44c
commit
3fd2131556
1 changed files with 21 additions and 0 deletions
21
src/main/resources/application-azure-postgres.properties
Normal file
21
src/main/resources/application-azure-postgres.properties
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Azure Spring Apps properties for PostgreSQL database
|
||||
#
|
||||
# Note you don't need to specify PostgreSQL JDBC URL, username, password, e.g.
|
||||
# spring.datasource.url
|
||||
# spring.datasource.username
|
||||
# spring.datasource.password
|
||||
#
|
||||
# This automatically gets injected into the application when you configure Service Connector.
|
||||
#
|
||||
database=postgres
|
||||
spring.sql.init.schema-locations=classpath*:db/${database}/schema.sql
|
||||
spring.sql.init.data-locations=classpath*:db/${database}/data.sql
|
||||
spring.sql.init.mode=always
|
||||
|
||||
#
|
||||
# You can use the standard environment variable JAVA_OPTS to pass the Spring active profile, e.g.
|
||||
#
|
||||
# az spring app deploy --name spring-petclinic --source-path . \
|
||||
# --build-env BP_JVM_VERSION=17 \
|
||||
# --env "JAVA_OPTS=-Dspring.profiles.active=azure-postgres"
|
||||
#
|
Loading…
Reference in a new issue