image.png

image.png
image.png
image.png
image.png

nginx的配置文件

商城管理平台
server {
listen 9001;
server_name localhost;
location / {
# 自己的盘符地址,路径不要有中文和特殊字符 例如 D:/lesson/heima/code/hm-mall-admin
root 自己盘符地址/hm-mall-admin;
}
}

商城门户平台
server {
listen 9002;
server_name localhost;
location / {
# 自己的盘符地址,路径不要有中文和特殊字符 例如 D:/lesson/heima/code/hm-mall-portal
root 自己盘符地址/hm-mall-portal;
}
}

image.png
image.png

image.png

image.png
image.png
mybatis-plus:
type-aliases-package: com.hmall.*.pojo
configuration:
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
update-strategy: not_null
id-type: auto
image.png
spring:
datasource:
url: jdbc:mysql://192.168.94.129:3306/xxxx?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false
username: root
password: itcast142
driver-class-name: com.mysql.jdbc.Driver

image.png
spring:
datasource:
url: jdbc:mysql://192.168.94.129:3306/hmall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false

image.png
aa: xx
image.png
spring:
datasource:
url: jdbc:mysql://192.168.94.129:3306/xxxx?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false
username: root
password: itcast142
driver-class-name: com.mysql.jdbc.Driver