Contents

User, Operation, and Merchant Building

User service construction

User business model backend service:

For user registration, due to the uniqueness of the mobile phone number, the most reliable method is to use the unique index guarantee of the database, and at the same time, catch the duplicatedkey exception and throw a meaningful mobile phone number registered exception.

User registration, using password encryption to store in secret text to ensure the security of user information The user logs in, through the stateless http session mechanism, passes the sessionId information through the cookie and saves the login credentials

The operation background construction

Operation background template:

Metronic general operation background template, you can directly use the code downloaded in the code download area before and after the metronic processing, the pre-processing can be used for learning controls, the processed can be directly applied to the course, and the course source code can be downloaded directly. Contains processed code

Unified permission management for aspect programming:

By introducing the springboot starter aop jar package, set the permission aspect and implement the ControllerAspect

Construction of Merchant Services

Merchant service setup:

  1. New creation, single query
  2. Solve the problem of query paging by introducing PageHelper

problems set

https://blog.csdn.net/YiQieFuCong/article/details/85009401?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1