Преглед изворни кода

【修复】统一日志使用方式

就是那个锅 пре 4 година
родитељ
комит
7789fbe711

+ 3 - 4
guns-base-support/guns-system/src/main/java/cn/stylefeng/guns/sys/core/listener/ConstantsInitListener.java

@ -29,11 +29,11 @@ import cn.hutool.db.DbUtil;
import cn.hutool.db.Entity;
import cn.hutool.db.handler.EntityListHandler;
import cn.hutool.db.sql.SqlExecutor;
import cn.hutool.log.Log;
import cn.stylefeng.guns.core.context.constant.ConstantContext;
import cn.stylefeng.guns.core.enums.CommonStatusEnum;
import cn.stylefeng.guns.core.exception.ServiceException;
import cn.stylefeng.guns.sys.modular.consts.enums.SysConfigExceptionEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationContextInitializedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.core.Ordered;
@ -44,8 +44,6 @@ import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.List;
import static cn.stylefeng.guns.sys.modular.consts.enums.SysConfigExceptionEnum.DATA_SOURCE_NOT_EXIST;
/**
 * 初始化常量的监听器
 * <p>
@ -54,9 +52,10 @@ import static cn.stylefeng.guns.sys.modular.consts.enums.SysConfigExceptionEnum.
 * @author stylefeng
 * @date 2020/6/6 23:39
 */
@Slf4j
public class ConstantsInitListener implements ApplicationListener<ApplicationContextInitializedEvent>, Ordered {
    private static final Log log = Log.get();
    private static final String CONFIG_LIST_SQL = "select code,value from sys_config where status = ?";
    @Override

+ 0 - 2
guns-base-support/guns-system/src/main/java/cn/stylefeng/guns/sys/core/listener/TimerTaskRunListener.java

@ -31,7 +31,6 @@ import cn.stylefeng.guns.sys.modular.timer.enums.TimerJobStatusEnum;
import cn.stylefeng.guns.sys.modular.timer.param.SysTimersParam;
import cn.stylefeng.guns.sys.modular.timer.service.SysTimersService;
import cn.stylefeng.guns.sys.modular.timer.service.TimerExeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.core.Ordered;
@ -44,7 +43,6 @@ import java.util.List;
 * @author stylefeng
 * @date 2020/7/1 15:30
 */
@Slf4j
public class TimerTaskRunListener implements ApplicationListener<ApplicationStartedEvent>, Ordered {
    @Override

+ 0 - 2
guns-base-support/guns-system/src/main/java/cn/stylefeng/guns/sys/modular/file/controller/SysFileInfoController.java

@ -31,7 +31,6 @@ import cn.stylefeng.guns.core.pojo.response.ResponseData;
import cn.stylefeng.guns.core.pojo.response.SuccessResponseData;
import cn.stylefeng.guns.sys.modular.file.param.SysFileInfoParam;
import cn.stylefeng.guns.sys.modular.file.service.SysFileInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
@ -46,7 +45,6 @@ import javax.servlet.http.HttpServletResponse;
 * @date 2020/6/7 22:15
 */
@RestController
@Slf4j
public class SysFileInfoController {
    @Resource