forked from lenve/VBlog
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from YUbuntu0109/upgrade-to-mysql8+
upgrade-to-mysql8+ merge to the branch of newfun-restore-article
- Loading branch information
Showing
2 changed files
with
87 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource | ||
spring.datasource.url=jdbc:mysql:///vueblog?useUnicode=true&characterEncoding=UTF-8 | ||
spring.datasource.username=username | ||
spring.datasource.password=password | ||
|
||
#Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. | ||
#spring.datasource.driver-class-name=com.mysql.jdbc.Driver | ||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver | ||
|
||
#Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '??????¡Á??¡À?' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support. | ||
#spring.datasource.url=jdbc:mysql:///vueblog2?useUnicode=true&characterEncoding=UTF-8 | ||
spring.datasource.url=jdbc:mysql:///vueblog2?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true | ||
|
||
spring.datasource.username= | ||
spring.datasource.password= | ||
mybatis.config-location=classpath:/mybatis-config.xml | ||
|
||
server.port=8081 | ||
logging.level.org.springframework.security=info | ||
logging.level.org.springframework.security=info |