SpringBoot+Mybaits builds a general management system Example 12: Realization of system operation log function

1. Contents of this chapter

  Implementation of system operation log, using aop to realize the recording of system operation log, including editing log, deleting log, exporting log and logging in log, etc.

  1. full course address
  2. Source code download address
    insert image description here

2. Development video

SpringBoot+Mybaits builds a general management system Example 5: Realization of operation log records

3. Operation log

  Use AOP to realize the recording of system operation logs. By adding aspects to intercept the execution method in the system service, the recording of data operation logs is realized. The operation logs automatically record information such as current login user information, operation client IP information, operation content and parameters.
  Note that when aop intercepts, you need to filter out the services related to ILogService itself, otherwise it will lead to an endless loop. Create an AopConfig configuration class, as follows:

Guess you like

Origin blog.csdn.net/m0_37631110/article/details/127656654