You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/labs/CockRoachDBTest/CockRoachDBJPATest/src/main/resources/application.properties

17 lines
849 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#需要先创建数据库
#测试时ddl-auto设置为create每次启动项目时先删除再创建表退出时不删除表
#生成环境ddl-auto设置为validate只在启动项目时只校验表结构
spring.jpa.hibernate.ddl-auto=create
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL94Dialect
spring.jpa.show-sql=true
spring.datasource.username=root
spring.datasource.password=
#insecure
spring.datasource.url=jdbc:postgresql://localhost:26257/mytestj?sslmode=disable
#ssl
#certs.path=D:/1.0/ZHXY/labs/CockRoachDBTest/cockroach-v2.0.5.windows-6.2-amd64/certs/
#spring.datasource.url=jdbc:postgresql://localhost:26257/mytestj?ssl=true\
# &sslfactory=org.postgresql.ssl.jdbc4.LibPQFactory\
# &sslcert=${certs.path}client.root.crt\
# &sslkey=${certs.path}client.root.pk8\
# &sslrootcert=${certs.path}ca.crt