Skip to content
Permalink
Browse files

How to switch datasource url - maven filter

  • Loading branch information...
slem1 committed Oct 24, 2017
1 parent ccf5ce2 commit b54ad14e9f0458e4a4eca65a0fb6c4a40bf5eba2
@@ -12,6 +12,11 @@
<groupId>fr.sle</groupId>
<artifactId>spring-boot-test-howto-business</artifactId>

<properties>
<!-- default profile value -->
<spring.profiles.active>local</spring.profiles.active>
</properties>

<dependencies>

<dependency>
@@ -37,4 +42,23 @@
</dependency>
</dependencies>

<build>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*.properties</include>
</includes>
</testResource>
<testResource>
<directory>src/test/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>**/*.properties</exclude>
</excludes>
</testResource>
</testResources>
</build>

</project>
@@ -1,5 +1,4 @@
spring.profiles.active=@spring.profiles.active@
#spring.datasource.url=jdbc:postgresql://localhost:5432/testhowto
spring.datasource.username=testhowto
spring.datasource.password=testhowto
spring.datasource.driver-class-name=org.postgresql.Driver

0 comments on commit b54ad14

Please sign in to comment.
You can’t perform that action at this time.