后端部署

master
yang bin 2 years ago
parent 649aedfa26
commit cd7ac95ad0

@ -9,7 +9,7 @@ spring:
max-request-size: 20MB max-request-size: 20MB
server: server:
port: 8080 port: 8082
compression: compression:
enabled: true enabled: true
min-response-size: 2048 min-response-size: 2048
@ -19,4 +19,4 @@ logging:
config: classpath:logback-spring.xml config: classpath:logback-spring.xml
swagger: swagger:
production: false production: false

@ -3,6 +3,6 @@ drop user if exists 'litemall'@'%';
-- 支持emoji需要mysql数据库参数 character_set_server=utf8mb4 -- 支持emoji需要mysql数据库参数 character_set_server=utf8mb4
create database litemall default character set utf8mb4 collate utf8mb4_unicode_ci; create database litemall default character set utf8mb4 collate utf8mb4_unicode_ci;
use litemall; use litemall;
create user 'litemall'@'%' identified by 'litemall123456'; create user 'litemall'@'%' identified by 'Litemall123456.';
grant all privileges on litemall.* to 'litemall'@'%'; grant all privileges on litemall.* to 'litemall'@'%';
flush privileges; flush privileges;

@ -7,10 +7,13 @@ pagehelper:
spring: spring:
datasource: datasource:
druid: 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 driver-class-name: com.mysql.cj.jdbc.Driver
username: litemall # username: litemall
password: litemall123456 # password: Litemall123456.
username: root
password: Jingcheng@2023
initial-size: 10 initial-size: 10
max-active: 50 max-active: 50
min-idle: 10 min-idle: 10

Loading…
Cancel
Save