Method of configuring log4j log in SSM project

This paper introduces the method of configuring log4j log in SSM project and shares it with you, as follows:

Add dependency in POM file

Then create a static logger object in Aopu or interceptor

2.8. Logmanager is used after version 1

The names of the two imported packages are

Use the info method of this logger to print the information to the console

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>