snowy/snowy-main/src/main/resources/application-prod.yml

43 lines
1.4 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden 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.

# Mysql数据库
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/snowy-pub?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
username: root
password: 123456
# Oracle数据库
#spring:
# datasource:
# driver-class-name: oracle.jdbc.OracleDriver
# url: jdbc:oracle:thin:@localhost:1521:xe
# username: SNOWY-PUB-ORACLE
# password: 123456
# SQLServer配置
#spring:
# datasource:
# driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
# url: jdbc:sqlserver://localhost:1433;DatabaseName=snowy-pub-mssql
# username: sa
# password: 123456
# PostgreSQL配置
#spring:
# datasource:
# driverClassName: org.postgresql.Driver
# url: jdbc:postgresql://127.0.0.1:5432/snowy-pub-postgresql
# username: postgres
# password: 123456
#spring:
# datasource:
# driver-class-name: com.kingbase8.Driver
# url: jdbc:kingbase8://localhost:54321/snowy-pub-kingbase
# username: SYSTEM
# password: 123456
# filters: mergeStat
# #人大金仓数据库兼容问题不需要加在sql语句中加public的解决方法
# #在根目录data下的kingbase.conf文档里面找到search_path = '"$user",PUBLIC,sys_catalog'进行替换放开
# #重启数据库即可完全兼容,注意 sql中不能出现mysql中的关键字的单引号