feat(商城): 升级至Springboot2.7+

master
wayn 2 years ago
parent 85f47615d3
commit 951d8eccc5

@ -3,64 +3,56 @@ services:
waynboot-mobile-api: waynboot-mobile-api:
image: ibm-semeru-runtimes:open-17-jdk image: ibm-semeru-runtimes:open-17-jdk
container_name: mobile container_name: mobile
ports:
- "82"
volumes: volumes:
- /etc/localtime:/etc/localtime - /etc/localtime:/etc/localtime
- /home/logs:/home/logs - /home/logs:/home/logs
- /opt/wayn/upload:/opt/wayn/upload - /opt/waynboot-mall/upload:/opt/waynboot-mall/upload
- ./jars/waynboot-mobile-api-1.1.0.jar:/home/app/waynboot-mobile-api-1.1.0.jar - ./jars/waynboot-mobile-api.jar:/home/app/waynboot-mobile-api.jar
restart: always restart: always
command: java -Xms500m -Xmx500m -Duser.timezone=GMT+8 -Dfile.encoding=utf-8 -jar /home/app/waynboot-mobile-api-1.1.0.jar command: java -Xms512m -Xmx512m -Duser.timezone=GMT+8 -Dfile.encoding=utf-8 -jar /home/app/waynboot-mobile-api.jar
network_mode: "host" network_mode: "host"
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
- LOG_PATH_PREFIX=/home/logs - LOG_PATH_PREFIX=/home/logs
- UPLOAD_DIR=/opt/wayn/upload - UPLOAD_DIR=/opt/waynboot-mall/upload
waynboot-admin-api: waynboot-admin-api:
image: ibm-semeru-runtimes:open-17-jdk image: ibm-semeru-runtimes:open-17-jdk
container_name: admin container_name: admin
ports:
- "81"
volumes: volumes:
- /etc/localtime:/etc/localtime - /etc/localtime:/etc/localtime
- /home/logs:/home/logs - /home/logs:/home/logs
- /opt/wayn/upload:/opt/wayn/upload - /opt/waynboot-mall/upload:/opt/waynboot-mall/upload
- ./jars/waynboot-admin-api-1.1.0.jar:/home/app/waynboot-admin-api-1.1.0.jar - ./jars/waynboot-admin-api.jar:/home/app/waynboot-admin-api.jar
restart: always restart: always
command: java -Xms500m -Xmx500m -Duser.timezone=GMT+8 -Dfile.encoding=utf-8 -jar /home/app/waynboot-admin-api-1.1.0.jar command: java -Xms512m -Xmx512m -Duser.timezone=GMT+8 -Dfile.encoding=utf-8 -jar /home/app/waynboot-admin-api.jar
network_mode: "host" network_mode: "host"
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
- LOG_PATH_PREFIX=/home/logs - LOG_PATH_PREFIX=/home/logs
- UPLOAD_DIR=/opt/wayn/upload - UPLOAD_DIR=/opt/waynboot-mall/upload
waynboot-message: waynboot-message:
image: ibm-semeru-runtimes:open-17-jdk image: ibm-semeru-runtimes:open-17-jdk
container_name: message container_name: message
ports:
- "85"
volumes: volumes:
- /etc/localtime:/etc/localtime - /etc/localtime:/etc/localtime
- /home/logs:/home/logs - /home/logs:/home/logs
- /opt/wayn/upload:/opt/wayn/upload - /opt/waynboot-mall/upload:/opt/waynboot-mall/upload
- ./jars/waynboot-message-consumer-1.1.0.jar:/home/app/waynboot-message-consumer-1.1.0.jar - ./jars/waynboot-message-consumer.jar:/home/app/waynboot-message-consumer.jar
restart: always restart: always
command: java -Xms500m -Xmx500m -Duser.timezone=GMT+8 -Dfile.encoding=utf-8 -jar /home/app/waynboot-message-consumer-1.1.0.jar command: java -Xms512m -Xmx512m -Duser.timezone=GMT+8 -Dfile.encoding=utf-8 -jar /home/app/waynboot-message-consumer.jar
network_mode: "host" network_mode: "host"
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
- LOG_PATH_PREFIX=/home/logs - LOG_PATH_PREFIX=/home/logs
- UPLOAD_DIR=/opt/wayn/upload - UPLOAD_DIR=/opt/waynboot-mall/upload
waynboot-monitor: # waynboot-monitor:
image: ibm-semeru-runtimes:open-17-jdk # image: ibm-semeru-runtimes:open-17-jdk
container_name: monitor # container_name: monitor
ports: # volumes:
- "89" # - /etc/localtime:/etc/localtime
volumes: # - ./jars/waynboot-monitor.jar:/home/app/waynboot-monitor.jar
- /etc/localtime:/etc/localtime # restart: always
- ./jars/waynboot-monitor-1.1.0.jar:/home/app/waynboot-monitor-1.1.0.jar # command: java -Xms500m -Xmx500m -Duser.timezone=GMT+8 -Dfile.encoding=utf-8 -jar /home/app/waynboot-monitor.jar
restart: always # network_mode: "host"
command: java -Xms500m -Xmx500m -Duser.timezone=GMT+8 -Dfile.encoding=utf-8 -jar /home/app/waynboot-monitor-1.1.0.jar # environment:
network_mode: "host" # - TZ=Asia/Shanghai
environment:
- TZ=Asia/Shanghai

@ -62,7 +62,7 @@ http {
#enables WS support #enables WS support
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrad proxy_set_header Connection "upgrade";
} }
location /admin-api/ { location /admin-api/ {

@ -2,7 +2,7 @@
waynboot-mall是一套全部开源的微商城项目包含一个运营后台、h5商城和后台接口。 waynboot-mall是一套全部开源的微商城项目包含一个运营后台、h5商城和后台接口。
实现了一个商城所需的首页展示、商品分类、商品详情、sku详情、商品搜索、加入购物车、结算下单、订单状态流转、商品评论等一系列功能。 实现了一个商城所需的首页展示、商品分类、商品详情、sku详情、商品搜索、加入购物车、结算下单、订单状态流转、商品评论等一系列功能。
技术上基于Springboot2.0整合了Redis、RabbitMQ、ElasticSearch等常用中间件 技术上基于Springboot2.7+,jdk17整合了Redis、RabbitMQ、ElasticSearch等常用中间件
贴近生产环境实际经验开发而来不断完善、优化、改进中。 贴近生产环境实际经验开发而来不断完善、优化、改进中。
[h5商城项目](https://github.com/wayn111/waynboot-mobile) [h5商城项目](https://github.com/wayn111/waynboot-mobile)
@ -396,7 +396,7 @@ h5商城api:
- 注册一个账号 - 注册一个账号
- 然后登陆 - 然后登陆
演示地址http://82.157.141.70/mall 演示地址http://mall.wayn.xin/mall
## 演示图 ## 演示图

@ -53,5 +53,6 @@
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
<finalName>waynboot-monitor</finalName>
</build> </build>
</project> </project>

Loading…
Cancel
Save