后端部署

master
yang bin 2 years ago
parent 649aedfa26
commit cd7ac95ad0

@ -9,7 +9,7 @@ spring:
max-request-size: 20MB
server:
port: 8080
port: 8082
compression:
enabled: true
min-response-size: 2048

@ -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;

@ -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

Loading…
Cancel
Save