|
|
@@ -10,7 +10,6 @@ import cn.hutool.extra.spring.SpringUtil;
|
|
|
import com.nb.system.entity.SysRunningLog;
|
|
|
import com.nb.system.mapper.SysRunningLogMapper;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.context.ApplicationContext;
|
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
@@ -21,7 +20,6 @@ public class SystemLoggingAppender extends UnsynchronizedAppenderBase<ILoggingEv
|
|
|
@Override
|
|
|
protected void append(ILoggingEvent event) {
|
|
|
if(logMapper==null){
|
|
|
- ApplicationContext applicationContext = SpringUtil.getApplicationContext();
|
|
|
logMapper= SpringUtil.getBean(SysRunningLogMapper.class);
|
|
|
}
|
|
|
if(logMapper==null){
|