Skip to content

IreneMengj/Distributed-ecomerce-platform

Repository files navigation

Guli Mall

Guli Mall is a distributed e-commerce project. SpringBoot 2.1.8.RELEASE was mainly used in the backend and vue was used in the frontend. This project will be developed in three phases. Now the first phase has been finished.

Technology Stack

Java

Spring

SpringMvc

Springboot

Mybatis Plus

Mysql

Vue

Node.js

Springcloud : nacos , openfeign , gateway, etc.

Module Introduction

Module Name Module Description
gulimall-common To save constant, exception, util classes, etc.
gulimall-coupon To provide product coupon information
gulimall-gateway The gateway receives all requests from the front-end and forwards them to other services
gulimall-member To provide member services
gulimall-order To provide order services
gulimall-product add/update/delete products
gulimall-third-party Integrate third party services, such as Aliyun OSS
gulimall-ware To provide ware services

Operation instruction

1. First you need to build a suitable environment to develop the project:
2. Import RENREN-FAST and RENREN-FAST-VUE from website https://gitee.com/renrenio and take mine(waiting for uploading) as reference.
3. Use command "npm install" to firstly install the front-end and then use "npm dev run" to run this front-end system.
4. Build databases and import sql files(waiting for uploading...)
5. Modify the specific information in each application.yml
6. Install Nacos and use Nacos as registration and configuration center(you can also use other software)
7. Start applications(currently exclude gulimall-order)
Please take my configuration as an example:


java version:"1.8.0_351"
MAVEN Version:3.6.3
Node.js Version:12.0.0
MySQL Version: 8.0.30

development logs(1.14)

I noticed that there is one warn showing in the product service console saying (Skipping MapperFactoryBean with name 'attrAttrgroupRelationDao' and 'com.atguigu.gulimall.product.dao.AttrAttrgroupRelationDao' mapperInterface. Bean already defined with the same name!)At least now it didn't influence my development, I will ignore it temporarily.
Finally found it was caused by the duplicated use of mapper scan on starter class and @Mapper annotation!!!

gulimall - ware

It is corresponding to gulimall_vms database. There are 6 tables in the database. One saves the information of different wares. One saves the stock details in each ware.Two of them are related with order. The left two are to do with purchase details.
Firstly, I can't add ware info data. It prompts 500 error. I checked the code of wareInfoController and didn't find anything wrong. I noticed the console showing that there might be a problem in SQL. I finally found that I didn't add get/set methods for wareInfo entity after deleting lombok(there is conflict if I use lombok).

image when I developed spu管理 and chose 规格,the page showed 400. After I inserted one SQL"INSERT INTO sys_menu (menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (76, 37, '规格维护', 'product/attrupdate', '', 2, 'log', 0);" and change type to 1. I can see the content of "规格".
??I still have questions here.

Development log 1.16

Today I added one more module(gulimall-search) in gulimall. This module integrated elasticsearch. However, third-party module can't register in nacos suddenly after adding this new module. Actually I have met the this issue when I added third-party module and at that time product module can't be registered in Nacos. I didn't solve it but redid the whole project from the beginning since I couldn't find any solutions. This time I solved it by moving other modules to the same namespace as third-party. Although third-party can't register itself in the public, it can be registered in other namespace.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages