The Spring Cloud Data Flow documentation suggests rebuilding (!?!) when you need to add a custom JDBC driver. That seems a bit crazy to me so after a bit of Googling it turns out you can do it using the Spring Boot PropertiesLauncher:
java -cp spring-cloud-dataflow-server-2.2.0.RELEASE.jar -Dloader.path=lib \ org.springframework.boot.loader.PropertiesLauncher \ --spring.datasource.url=jdbc:mysql://localhost:3306/y9a?useSSL=false \ --spring.datasource.username=root \ --spring.datasource.password=password \ --spring.datasource.driverClassName=com.mysql.jdbc.DriverAnd you simply have to put the JDBC driver jar file in the lib/ directory:
spring-cloud-dataflow-server-2.2.0.RELEASE.jar lib/ mysql-connector-java-8.0.17.jarDisco!
No comments:
Post a Comment