Annotation-based Spring AOP Design and Implementation of Log Processing

Wensheng Zhang · Value Engineering · 2012

System maintenance and errors troubleshooting need the program can automatically output log information and record the user's actions.But the log itself is unlikely to be your main tasks of the development of the main program.If the invisible and common logging code can be recorded into the main program,it will guarantee the purity of their business logic,reduce coupling between code,and increase program flexibility and reusability.This paper uses Annotation of Spring AOP to write a section,and specifies the range of cuts(starting point).When the system is running,log information will be output automatically or record in the specified files and database.

Read the paper · More papers on PaperTik