提交用户日志输出目录

This commit is contained in:
Guava
2023-06-21 13:47:04 +08:00
parent 44b9cffc5f
commit 12e46b47b7
2 changed files with 3 additions and 3 deletions

View File

@@ -34,10 +34,10 @@ public class CasesRecommendLaunchImportServiceImpl implements ICasesRecommendLau
@Override
public String importData(List<List<Object>> dataList) {
if (CollectionUtil.isEmpty(dataList)) {
if (CollectionUtil.isEmpty(dataList) || dataList.size() < 1) {
throw new RuntimeException("导入数据为空");
}
int totalNum = dataList.size();
int totalNum = dataList.size() - 1;
int successNum = 0;
int failNum = 0;
String importId = IdUtil.getSnowflakeNextId() + "";

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false" scan="false">
<springProperty scop="context" name="spring.application.name" source="spring.application.name" defaultValue=""/>
<property name="log.path" value="logs/${spring.application.name}"/>
<property name="log.path" value="./logs/${spring.application.name}"/>
<!-- 彩色日志格式 -->
<property name="CONSOLE_LOG_PATTERN"
value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/>