From cd7ac95ad0b44be6c62169b515f9297b6ce5afdd Mon Sep 17 00:00:00 2001 From: ybin Date: Thu, 11 Apr 2024 00:34:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E7=AB=AF=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litemall-all/src/main/resources/application.yml | 4 ++-- litemall-db/sql/litemall_schema.sql | 4 ++-- litemall-db/src/main/resources/application-db.yml | 9 ++++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/litemall-all/src/main/resources/application.yml b/litemall-all/src/main/resources/application.yml index 6caba81..dfc0575 100644 --- a/litemall-all/src/main/resources/application.yml +++ b/litemall-all/src/main/resources/application.yml @@ -9,7 +9,7 @@ spring: max-request-size: 20MB server: - port: 8080 + port: 8082 compression: enabled: true min-response-size: 2048 @@ -19,4 +19,4 @@ logging: config: classpath:logback-spring.xml swagger: - production: false \ No newline at end of file + production: false diff --git a/litemall-db/sql/litemall_schema.sql b/litemall-db/sql/litemall_schema.sql index e4c9457..fb1dfde 100644 --- a/litemall-db/sql/litemall_schema.sql +++ b/litemall-db/sql/litemall_schema.sql @@ -3,6 +3,6 @@ drop user if exists 'litemall'@'%'; -- 支持emoji:需要mysql数据库参数: character_set_server=utf8mb4 create database litemall default character set utf8mb4 collate utf8mb4_unicode_ci; use litemall; -create user 'litemall'@'%' identified by 'litemall123456'; +create user 'litemall'@'%' identified by 'Litemall123456.'; grant all privileges on litemall.* to 'litemall'@'%'; -flush privileges; \ No newline at end of file +flush privileges; diff --git a/litemall-db/src/main/resources/application-db.yml b/litemall-db/src/main/resources/application-db.yml index c102c30..df95d43 100644 --- a/litemall-db/src/main/resources/application-db.yml +++ b/litemall-db/src/main/resources/application-db.yml @@ -7,10 +7,13 @@ pagehelper: spring: datasource: druid: - url: jdbc:mysql://localhost:3306/litemall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false +# url: jdbc:mysql://localhost:3306/litemall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false + url: jdbc:mysql://123.60.186.1:3306/litemall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false driver-class-name: com.mysql.cj.jdbc.Driver - username: litemall - password: litemall123456 +# username: litemall +# password: Litemall123456. + username: root + password: Jingcheng@2023 initial-size: 10 max-active: 50 min-idle: 10