Skip to content

Commit e495e2e

Browse files
committed
Do not use spring.datasoruce.driver-class-name in the App REST application and rely on the Spring Boot driver auto detection
1 parent b80d858 commit e495e2e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

modules/flowable-app-rest/pom.xml

-2
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@
500500
<port>8080</port>
501501
<protocol>org.apache.coyote.http11.Http11NioProtocol</protocol>
502502
<systemProperties>
503-
<spring.datasource.driver-class-name>org.postgresql.Driver</spring.datasource.driver-class-name>
504503
<spring.datasource.url>jdbc:postgresql://localhost:5432/flowable</spring.datasource.url>
505504
<spring.datasource.username>flowable</spring.datasource.username>
506505
<spring.datasource.password>flowable</spring.datasource.password>
@@ -527,7 +526,6 @@
527526
<artifactId>spring-boot-maven-plugin</artifactId>
528527
<configuration>
529528
<arguments>
530-
<argument>--spring.datasource.driver-class-name=com.mysql.jdbc.Driver</argument>
531529
<argument>--spring.datasource.url=jdbc:mysql://127.0.0.1:3306/flowable?characterEncoding=UTF-8</argument>
532530
<argument>--spring.datasource.username=flowable</argument>
533531
<argument>--spring.datasource.password=flowable</argument>

modules/flowable-app-rest/src/main/resources/flowable-default.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spring.banner.location=classpath:/org/flowable/spring/boot/flowable-banner.txt
1515
# all would be created with the same name (com.zaxxer.hikari:name=dataSource,type=HikariDataSource) for example
1616
spring.jmx.default-domain=${spring.application.name}
1717
# datasource
18-
spring.datasource.driver-class-name=org.h2.Driver
18+
#spring.datasource.driver-class-name=org.h2.Driver
1919
spring.datasource.url=jdbc:h2:~/flowable-db/ossdb;AUTO_SERVER=TRUE;AUTO_SERVER_PORT=9091;DB_CLOSE_DELAY=-1
2020
spring.datasource.username=flowable
2121
spring.datasource.password=flowable

0 commit comments

Comments
 (0)