servicecomb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject [DISCUSSION]No need to rebuild the way to let alpha support multiple database types
Date Sat, 16 Feb 2019 16:16:50 GMT
We can use loads external jars support multiple database types
create libs directory in the  alpha-server-0.4.0-SNAPSHOT-exec.jar directory, copy  mysql-connector-java-8.0.15.jar
to the libs directory And add config -Dloader.path=./libs to the command line, e.g.

java -Dloader.path=./libs -jar alpha-server-0.4.0-SNAPSHOT-exec.jar \
--spring.datasource.platform=mysql \
--spring.datasource.dataSourceClassName=com.mysql.jdbc.Driver \
--spring.datasource.username=saga-user \
--spring.datasource.password=saga-password \

In order to external jars support need to use `ZIP` layout in maven plugin configuration,



View raw message