Add property 'db.name' to enable config of DB connection during build time
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<packaging.type>jar</packaging.type>
|
<packaging.type>jar</packaging.type>
|
||||||
<activeProfiles>hsqldb,dev</activeProfiles>
|
<activeProfiles>hsqldb,dev</activeProfiles>
|
||||||
|
<db.name>financer</db.name>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
spring.flyway.locations=classpath:/database/postgres,classpath:/database/common
|
spring.flyway.locations=classpath:/database/postgres,classpath:/database/common
|
||||||
|
|
||||||
spring.datasource.url=jdbc:postgresql://localhost/financer
|
# Placeholder @db.name@ maps to the property db.name in the server POM.
|
||||||
spring.datasource.username=financer
|
# Its default value is 'financer'
|
||||||
spring.datasource.password=financer
|
# Enables easy configuration of DB name/user to use at build time
|
||||||
|
spring.datasource.url=jdbc:postgresql://localhost/@db.name@
|
||||||
|
spring.datasource.username=@db.name@
|
||||||
|
spring.datasource.password=@db.name@
|
||||||
|
|
||||||
# See https://github.com/spring-projects/spring-boot/issues/12007
|
# See https://github.com/spring-projects/spring-boot/issues/12007
|
||||||
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
|
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
|
||||||
Reference in New Issue
Block a user