diff --git a/src/main/resources/application-proxy.properties b/src/main/resources/application-proxy.properties index 7de4c2bf1..642c67f86 100644 --- a/src/main/resources/application-proxy.properties +++ b/src/main/resources/application-proxy.properties @@ -1,7 +1,12 @@ - -spring.datasource.driver-class-name=com.mysql.jdbc.Driver +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +spring.datasource.master.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.schema-name=royalpay_production spring.datasource.host=119.28.3.196:3310 -spring.datasource.url=jdbc:mysql://${spring.datasource.host}/${spring.datasource.schema-name}?useUnicode=true&characterEncoding=utf8&useSSL=false -spring.datasource.username=readonly -spring.datasource.password=read0nly \ No newline at end of file +spring.datasource.master.jdbc-url=jdbc:mysql://${spring.datasource.host}/${spring.datasource.schema-name}?useUnicode=true&characterEncoding=utf8&useSSL=false +spring.datasource.master.username=readonly +spring.datasource.master.password=read0nly + +spring.datasource.slave.driver-class-name=com.mysql.cj.jdbc.Driver +spring.datasource.slave.jdbc-url=jdbc:mysql://${spring.datasource.host}/${spring.datasource.schema-name}?useUnicode=true&characterEncoding=utf8&useSSL=false +spring.datasource.slave.username=readonly +spring.datasource.slave.password=read0nly \ No newline at end of file diff --git a/src/test/java/au/com/royalpay/payment/manage/process/ato/ExportATOReport.java b/src/test/java/au/com/royalpay/payment/manage/process/ato/ExportATOReport.java index eb164b1d6..c44733b06 100644 --- a/src/test/java/au/com/royalpay/payment/manage/process/ato/ExportATOReport.java +++ b/src/test/java/au/com/royalpay/payment/manage/process/ato/ExportATOReport.java @@ -19,7 +19,7 @@ import java.nio.charset.StandardCharsets; * Create by yixian at 2018-08-31 14:40 */ @SpringBootTest -@ActiveProfiles({"proxy", "alipay", "wechat", "jd", "bestpay", "rpay","yeepay"}) +@ActiveProfiles({"proxy", "wechat","alipay","bestpay","rpay","jd","yeepay"}) @TestPropertySource(properties = {"spring.datasource.username=root", "spring.datasource.password=ZOIBhellor0yalpay"}) @RunWith(SpringRunner.class) public class ExportATOReport {