forked from googleapis/java-spanner-jdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication-cs.properties
More file actions
20 lines (16 loc) · 961 Bytes
/
Copy pathapplication-cs.properties
File metadata and controls
20 lines (16 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This profile uses a Cloud Spanner PostgreSQL database.
# The sample by default uses the Spanner emulator.
# Disable this flag to run the sample on a real Spanner instance.
spanner.emulator=true
# This property is automatically set to point to the Spanner emulator that is automatically
# started together with the application. It remains empty if the application is executed
# against a real Spanner instance.
spanner.endpoint=
# Used for testing
spanner.additional_properties=
# Update these properties to match your project, instance, and database.
spanner.project=my-project
spanner.instance=my-instance
spanner.database=mybatis-sample
spring.datasource.url=jdbc:cloudspanner:${spanner.endpoint}/projects/${spanner.project}/instances/${spanner.instance}/databases/${spanner.database};dialect=POSTGRESQL;autoConfigEmulator=${spanner.emulator};${spanner.additional_properties}
spring.datasource.driver-class-name=com.google.cloud.spanner.jdbc.JdbcDriver