admin管理员组

文章数量:1636995

异常:ERROR StatusLogger LogManager returned an instance of org.apache.logging.log4j.simple.SimpleLoggerContextFactory which does not implement org.apache.logging.log4j.core.impl.Log4jContextFactory. Unable to initialize Log4j
翻译:错误状态日志记录器LogManager返回org.apache.logging.log4j.simple的实例。SimpleLoggerContextFactory,它没有实现org.apache.log.log4j.core.impl. log4jcontextfactory。无法初始化Log4j

解决:
在src目录下创建一个配置文件,叫:log4j2ponent.properties;
内容配置为:log4j2.loggerContextFactory=org.apache.logging.log4j.core.impl.Log4jContextFactory
log4j.configurationFile=/log4j2.xml

本文标签: ErrorSimpleLoggerContextFactoryLog4jContextFactoryimplement