From b526b0afb0c5dd9a3a0169ee04347d5700b92117 Mon Sep 17 00:00:00 2001 From: HuangYuhui Date: Mon, 21 Oct 2019 22:01:22 +0800 Subject: [PATCH 1/2] :arrow_up: perf(pom.xml) : upgrade the version of mysql dependency --- blogserver/pom.xml | 146 +++++++++++++++++++++++---------------------- 1 file changed, 74 insertions(+), 72 deletions(-) diff --git a/blogserver/pom.xml b/blogserver/pom.xml index ced5cf6d..0c2615ff 100644 --- a/blogserver/pom.xml +++ b/blogserver/pom.xml @@ -1,71 +1,74 @@ - - 4.0.0 + + 4.0.0 - org.sang - blogserver - 0.0.1-SNAPSHOT - jar + org.sang + blogserver + 0.0.1-SNAPSHOT + jar - blogserver - Vue博客服务端 + blogserver + Vue博客服务端 - - org.springframework.boot - spring-boot-starter-parent - 1.5.9.RELEASE - - + + + org.springframework.boot + spring-boot-starter-parent + 1.5.9.RELEASE + + - - UTF-8 - UTF-8 - 1.8 - + + UTF-8 + UTF-8 + 1.8 + - - - org.mybatis.spring.boot - mybatis-spring-boot-starter - 1.3.1 - - - org.springframework.boot - spring-boot-starter-security - - - org.springframework.boot - spring-boot-starter-web - - - commons-codec - commons-codec - 1.11 - - - mysql - mysql-connector-java - - - commons-io - commons-io - 2.5 - - - com.alibaba - druid - 1.0.29 - - - aopalliance - aopalliance - 1.0 - - + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + 1.3.1 + + + org.springframework.boot + spring-boot-starter-security + + + org.springframework.boot + spring-boot-starter-web + + + commons-codec + commons-codec + 1.11 + + + mysql + mysql-connector-java + 8.0.15 + + + commons-io + commons-io + 2.5 + + + com.alibaba + druid + 1.0.29 + + + aopalliance + aopalliance + 1.0 + + - - + + src/main/java @@ -76,16 +79,15 @@ src/main/resources - - - org.springframework.boot - spring-boot-maven-plugin - - true - - - - - + + + org.springframework.boot + spring-boot-maven-plugin + + true + + + + From e06a2b30244c0bc0d29239c416e2593f188a8464 Mon Sep 17 00:00:00 2001 From: HuangYuhui Date: Mon, 21 Oct 2019 22:04:05 +0800 Subject: [PATCH 2/2] :wrench: perf(application.properties) : update the configuration info to mysql8.0.0+ --- .../src/main/resources/application.properties | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/blogserver/src/main/resources/application.properties b/blogserver/src/main/resources/application.properties index 857ce9a6..cb45012a 100644 --- a/blogserver/src/main/resources/application.properties +++ b/blogserver/src/main/resources/application.properties @@ -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 \ No newline at end of file +logging.level.org.springframework.security=info