2020
10-10
10-10
Java SSM框架如何添加写日志功能
前提:要导入log4j的jar包在web.xml中输入:<!--日志加载--><context-param><param-name>log4jConfigLocation</param-name><param-value>/WEB-INF/log4j.properties</param-value></context-param><listener><listener-class>org.springframework.web.util.Log4jConfigListener</listener-class></listener>在下面添加一个配置文件,名为:log4j.properties文件内容为:#loglevelDEBUG/INFO/WERN/ERROR/FATALlog4j.rootLog...
继续阅读 >