Mall project is a set of e-commerce system, including the front desk mall system and background management system. After reading the code, my ability will be greatly improved. In order to better let everyone know what the back-end should do, the front-end project will be directly abandoned, and we will use the online call interface for debugging and processing!

Project Address:

Github.com/macrozheng/…

Back-end technology stack:

SpringBoot container +MVC framework

SpringSecurity authentication and authorization framework

MyBatis ORM framework

MyBatisGenerator data layer code is generated automatically

PageHelper MyBatis physical paging plugin

Swagger-UI document production tool

Hibernator-validator Verification framework

Elasticsearch Search engine

RabbitMQ message queue

Redis distributed cache

MongoDB NoSql database

Docker application container engine

Druid Database connection pool

OSS Object Storage

MinIO Object storage

JWT JWT login support

LogStash Log collection tool

Lombok simplifies object encapsulation tools

Jenkins

Running the Mall project

1. Download items:

Download the Git tool (git-scm.com/download/wi…

2. IDEA was imported into mall multi-module project

Be sure to select import (ps: If it is the main interface of IDEA, remember to select import instead of new, which is essentially the same as this)

Of course, you can also choose other ways, but that requires a little more configuration, in fact, all the Java project configuration is here, go to baidu this point, you will know how to do all the Java project

3, The rest is to wait, IDEA will automatically download all maven dependencies (about 3 hours).

4. Project Structure analysis:

This is a multi-module project. In fact, almost all projects in the enterprise are structured in this way. Why

5, modify the Mysql configuration, Redis, Mongodb and other database cache message queue configuration is the same as Mysql, use again change, I now need to explain debugging Mysql configuration

Mapper, DAO, mapper. XML files are stored in the mall-mbg module.

Mysql > create mall database; select * from mall database;

Then modify Mysql configuration:

Username: root

Click on it and modify it directly.

6. Project Operation:

7. Results presentation:

Browser access:

http://localhost:8080/

When there is a:

{"code":401,"data":"Full authentication is required to access this resource","message":" No login or token has expired "}Copy the code

That means you succeeded

In addition, please search for “SpringBoot hot deployment” on Baidu to make your development faster

8. User registration and login debugging:

User registration

Open the online interface debugging website:

getman.cn

Enter the following address and parameters:

See, the registration is successful, then you go to the details of the registration code oh

User login:

After success returns a token, see for yourself what was done before the token was generated, and what was done after the token was generated

User login code

For all other interfaces, please visit this address:

http://localhost:8080/swagger-ui.html

Please step by step involved in the interface debugging, so front-end is optional, so, you should be clear before and after the end of the separation oh, do not tube front end flashy display, the back-end code to understand, so your ability will have a qualitative improvement, see the project source code, such as here:

How are data persistence layers (DAO, mapper, mapper.xml) generated and laid out?

How does service work?

How does a Controller call a service?

How does it work with all the processing involved

Finally, click here to receive the Java architecture package!!