From d9de1c9eb2e26f34500c136967bcd566105346d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=82=B8?= Date: Sat, 20 Jan 2024 16:49:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=8D=87=E7=BA=A7springboot?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bs-server/build.gradle | 2 +- bs-server/src/main/resources/application.yml | 3 ++- build.gradle | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bs-server/build.gradle b/bs-server/build.gradle index 9c56f51..c5dc3b5 100644 --- a/bs-server/build.gradle +++ b/bs-server/build.gradle @@ -12,7 +12,7 @@ repositories { dependencies { compile project(':kernel') - runtimeOnly('mysql:mysql-connector-java') + runtimeOnly('com.mysql:mysql-connector-j:8.3.0') implementation('com.itextpdf:itextpdf:5.5.13.1') implementation('org.apache.poi:poi:4.1.0') implementation('org.apache.poi:poi-ooxml:4.1.0') diff --git a/bs-server/src/main/resources/application.yml b/bs-server/src/main/resources/application.yml index 441655a..317e280 100644 --- a/bs-server/src/main/resources/application.yml +++ b/bs-server/src/main/resources/application.yml @@ -1,8 +1,9 @@ spring: datasource: - url: jdbc:mysql://localhost:3306/fxy?characterEncoding=UTF-8&useUnicode=true&useSSL=false&serverTimezone=GMT%2B8&allowMultiQueries=true + url: jdbc:mysql://localhost:3306/fxy?characterEncoding=UTF-8&useUnicode=true&useSSL=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true password: 12qwaszx username: root + driver-class-name: com.mysql.cj.jdbc.Driver hikari: maximum-pool-size: 2 minimum-idle: 2 diff --git a/build.gradle b/build.gradle index 81c89c6..2b5bff8 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ version '0.1' buildscript { ext { - springBootVersion = '2.1.8.RELEASE' + springBootVersion = '2.3.12.RELEASE' } repositories { maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } @@ -66,4 +66,4 @@ task independentBuild(dependsOn: ['front-end:build', 'bs-server:bootJar']) { } } } -} \ No newline at end of file +}