Skip to content

Commit 966ea0e

Browse files
author
javaage
committed
add google connection
1 parent 49c4c91 commit 966ea0e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

flexible/postgres/src/main/resources/mybatis-config.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<package name="com.cisco.la.entity"/>
88
</typeAliases>
99

10-
<environments default="development">
10+
<environments default="product">
1111
<environment id="development">
1212
<transactionManager type="JDBC" />
1313
<dataSource type="POOLED">
@@ -17,6 +17,15 @@
1717
<property name="password" value="19786028" />
1818
</dataSource>
1919
</environment>
20+
<environment id="product">
21+
<transactionManager type="JDBC" />
22+
<dataSource type="POOLED">
23+
<property name="driver" value="org.postgresql.Driver" />
24+
<property name="url" value="jdbc:postgresql://google/postgres?useSSL=false&amp;socketFactoryArg=newagent-25039:asia-northeast1:la&amp;socketFactory=com.google.cloud.sql.postgres.SocketFactory&amp;user=postgres&amp;password=la123456" />
25+
<property name="username" value="postgres" />
26+
<property name="password" value="la123456" />
27+
</dataSource>
28+
</environment>
2029
</environments>
2130

2231
<mappers>

0 commit comments

Comments
 (0)