Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5ab3e7

Browse files
authored
Merge pull request #2 from YUbuntu0109/upgrade-to-mysql8+
upgrade-to-mysql8+ merge to the branch of newfun-restore-article
2 parents 53035aa + e06a2b3 commit a5ab3e7

2 files changed

Lines changed: 87 additions & 77 deletions

File tree

blogserver/pom.xml

Lines changed: 74 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,74 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4-
<modelVersion>4.0.0</modelVersion>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
56

6-
<groupId>org.sang</groupId>
7-
<artifactId>blogserver</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
9-
<packaging>jar</packaging>
7+
<groupId>org.sang</groupId>
8+
<artifactId>blogserver</artifactId>
9+
<version>0.0.1-SNAPSHOT</version>
10+
<packaging>jar</packaging>
1011

11-
<name>blogserver</name>
12-
<description>Vue博客服务端</description>
12+
<name>blogserver</name>
13+
<description>Vue博客服务端</description>
1314

14-
<parent>
15-
<groupId>org.springframework.boot</groupId>
16-
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>1.5.9.RELEASE</version>
18-
<relativePath/> <!-- lookup parent from repository -->
19-
</parent>
15+
<!-- lookup parent from repository -->
16+
<parent>
17+
<groupId>org.springframework.boot</groupId>
18+
<artifactId>spring-boot-starter-parent</artifactId>
19+
<version>1.5.9.RELEASE</version>
20+
<relativePath/>
21+
</parent>
2022

21-
<properties>
22-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24-
<java.version>1.8</java.version>
25-
</properties>
23+
<properties>
24+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
25+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
26+
<java.version>1.8</java.version>
27+
</properties>
2628

27-
<dependencies>
28-
<dependency>
29-
<groupId>org.mybatis.spring.boot</groupId>
30-
<artifactId>mybatis-spring-boot-starter</artifactId>
31-
<version>1.3.1</version>
32-
</dependency>
33-
<dependency>
34-
<groupId>org.springframework.boot</groupId>
35-
<artifactId>spring-boot-starter-security</artifactId>
36-
</dependency>
37-
<dependency>
38-
<groupId>org.springframework.boot</groupId>
39-
<artifactId>spring-boot-starter-web</artifactId>
40-
</dependency>
41-
<dependency>
42-
<groupId>commons-codec</groupId>
43-
<artifactId>commons-codec</artifactId>
44-
<version>1.11</version>
45-
</dependency>
46-
<dependency>
47-
<groupId>mysql</groupId>
48-
<artifactId>mysql-connector-java</artifactId>
49-
</dependency>
50-
<dependency>
51-
<groupId>commons-io</groupId>
52-
<artifactId>commons-io</artifactId>
53-
<version>2.5</version>
54-
</dependency>
55-
<dependency>
56-
<groupId>com.alibaba</groupId>
57-
<artifactId>druid</artifactId>
58-
<version>1.0.29</version>
59-
</dependency>
60-
<dependency>
61-
<groupId>aopalliance</groupId>
62-
<artifactId>aopalliance</artifactId>
63-
<version>1.0</version>
64-
</dependency>
65-
</dependencies>
29+
<dependencies>
30+
<dependency>
31+
<groupId>org.mybatis.spring.boot</groupId>
32+
<artifactId>mybatis-spring-boot-starter</artifactId>
33+
<version>1.3.1</version>
34+
</dependency>
35+
<dependency>
36+
<groupId>org.springframework.boot</groupId>
37+
<artifactId>spring-boot-starter-security</artifactId>
38+
</dependency>
39+
<dependency>
40+
<groupId>org.springframework.boot</groupId>
41+
<artifactId>spring-boot-starter-web</artifactId>
42+
</dependency>
43+
<dependency>
44+
<groupId>commons-codec</groupId>
45+
<artifactId>commons-codec</artifactId>
46+
<version>1.11</version>
47+
</dependency>
48+
<dependency>
49+
<groupId>mysql</groupId>
50+
<artifactId>mysql-connector-java</artifactId>
51+
<version>8.0.15</version>
52+
</dependency>
53+
<dependency>
54+
<groupId>commons-io</groupId>
55+
<artifactId>commons-io</artifactId>
56+
<version>2.5</version>
57+
</dependency>
58+
<dependency>
59+
<groupId>com.alibaba</groupId>
60+
<artifactId>druid</artifactId>
61+
<version>1.0.29</version>
62+
</dependency>
63+
<dependency>
64+
<groupId>aopalliance</groupId>
65+
<artifactId>aopalliance</artifactId>
66+
<version>1.0</version>
67+
</dependency>
68+
</dependencies>
6669

67-
<build>
68-
<resources>
70+
<build>
71+
<resources>
6972
<resource>
7073
<directory>src/main/java</directory>
7174
<includes>
@@ -76,16 +79,15 @@
7679
<directory>src/main/resources</directory>
7780
</resource>
7881
</resources>
79-
<plugins>
80-
<plugin>
81-
<groupId>org.springframework.boot</groupId>
82-
<artifactId>spring-boot-maven-plugin</artifactId>
83-
<configuration>
84-
<executable>true</executable>
85-
</configuration>
86-
</plugin>
87-
</plugins>
88-
</build>
89-
82+
<plugins>
83+
<plugin>
84+
<groupId>org.springframework.boot</groupId>
85+
<artifactId>spring-boot-maven-plugin</artifactId>
86+
<configuration>
87+
<executable>true</executable>
88+
</configuration>
89+
</plugin>
90+
</plugins>
91+
</build>
9092

9193
</project>
Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
2-
spring.datasource.url=jdbc:mysql:///vueblog?useUnicode=true&characterEncoding=UTF-8
3-
spring.datasource.username=username
4-
spring.datasource.password=password
2+
3+
#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.
4+
#spring.datasource.driver-class-name=com.mysql.jdbc.Driver
5+
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
6+
7+
#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.
8+
#spring.datasource.url=jdbc:mysql:///vueblog2?useUnicode=true&characterEncoding=UTF-8
9+
spring.datasource.url=jdbc:mysql:///vueblog2?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
10+
11+
spring.datasource.username=
12+
spring.datasource.password=
513
mybatis.config-location=classpath:/mybatis-config.xml
6-
14+
715
server.port=8081
8-
logging.level.org.springframework.security=info
16+
logging.level.org.springframework.security=info

0 commit comments

Comments
 (0)