mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-12-02 03:57:35 +08:00
[Core] Add a connection to the database to specify the time zone
This commit is contained in:
parent
ee784fcc10
commit
7b2ee4e69b
@ -17,14 +17,14 @@ spring.web.resources.add-mappings=true
|
||||
################################ Database configure #################################
|
||||
### The system uses h2 storage by default, and the following related configurations can be modified
|
||||
spring.datasource.driverClassName=org.h2.Driver
|
||||
spring.datasource.url=jdbc:h2:mem:datacap
|
||||
spring.datasource.url=jdbc:h2:mem:datacap?serverTimezone=CTT
|
||||
spring.datasource.username=h2
|
||||
spring.datasource.password=h2
|
||||
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
|
||||
spring.h2.console.enabled=true
|
||||
|
||||
### If you enable MySQL storage, please modify the following configuration
|
||||
#spring.datasource.url=jdbc:mysql://localhost:3306/datacap?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&useOldAliasMetadataBehavior=true&jdbcCompliantTruncation=false&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION,PIPES_AS_CONCAT'
|
||||
#spring.datasource.url=jdbc:mysql://localhost:3306/datacap?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&useOldAliasMetadataBehavior=true&jdbcCompliantTruncation=false&serverTimezone=CTT
|
||||
#spring.datasource.username=root
|
||||
#spring.datasource.password=12345678
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user