升级 log4j到 log4j2 解决boot日志兼容问题

This commit is contained in:
zxm 2018-05-01 17:45:02 +08:00
parent c42b9bcc47
commit 9b151e34cc
1 changed files with 98 additions and 96 deletions

View File

@ -8,13 +8,13 @@ import com.len.base.BaseService;
import com.len.base.CurrentUser; import com.len.base.CurrentUser;
import com.len.exception.MyException; import com.len.exception.MyException;
import com.len.util.ReType; import com.len.util.ReType;
import org.apache.logging.log4j.LogManager;
import org.apache.shiro.SecurityUtils;
import java.io.Serializable; import java.io.Serializable;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import org.apache.shiro.SecurityUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/** /**
* @author zhuxiaomeng * @author zhuxiaomeng
@ -23,7 +23,7 @@ import org.slf4j.LoggerFactory;
*/ */
public abstract class BaseServiceImpl<T, E extends Serializable> implements BaseService<T, E> { public abstract class BaseServiceImpl<T, E extends Serializable> implements BaseService<T, E> {
private static Logger logger= LoggerFactory.getLogger(BaseServiceImpl.class); private static final org.apache.logging.log4j.Logger logger = LogManager.getLogger(BaseServiceImpl.class);
public abstract BaseMapper<T, E> getMappser(); public abstract BaseMapper<T, E> getMappser();
@ -40,6 +40,7 @@ public abstract class BaseServiceImpl <T,E extends Serializable> implements Base
/** /**
* 通用注入创建 更新信息 可通过super调用 * 通用注入创建 更新信息 可通过super调用
*
* @param record * @param record
* @param flag * @param flag
* @return * @return
@ -102,6 +103,7 @@ public abstract class BaseServiceImpl <T,E extends Serializable> implements Base
/** /**
* 公共展示类 * 公共展示类
*
* @param t 实体 * @param t 实体
* @param page * @param page
* @param limit * @param limit