Commit feb1e5db by liuyu

2023年04月07日 log日志依赖冲突解决

parent 2d7cb8af
......@@ -13,7 +13,7 @@ public class Server {
try {
SpringApplication.run(Server.class, args);
} catch (Exception e) {
System.out.println(e.getMessage());
log.error("自动标注中间件server启动失败", e);
}
log.info("时间:,自动标注中间件启动成功");
}
......
......@@ -20,11 +20,11 @@ public class TemplateRecordDaoImpl implements TemplateRecordDao {
@Override
public List<TemplateRecord> findTemplateRecord(Query query) {
return mongoTemplate.find(query, TemplateRecord.class, "automaticmark_template_record");
return mongoTemplate.find(query, TemplateRecord.class, "automaticmark_template_record_new");
}
@Override
public long count(Query query) {
return mongoTemplate.count(query, TemplateRecord.class, "automaticmark_template_record");
return mongoTemplate.count(query, TemplateRecord.class, "automaticmark_template_record_new");
}
}
......@@ -20,21 +20,21 @@ public class TemplateRecordDaoImpl implements TemplateRecordDao {
@Override
public List<TemplateRecord> findTemplateRecord(Query query) {
return mongoTemplate.find(query, TemplateRecord.class, "automaticmark_template_record");
return mongoTemplate.find(query, TemplateRecord.class, "automaticmark_template_record_new");
}
@Override
public void insertTemplateRecord(TemplateRecord templateRecord) {
mongoTemplate.insert(templateRecord, "automaticmark_template_record");
mongoTemplate.insert(templateRecord, "automaticmark_template_record_new");
}
@Override
public long count(Query query) {
return mongoTemplate.count(query, TemplateRecord.class, "automaticmark_template_record");
return mongoTemplate.count(query, TemplateRecord.class, "automaticmark_template_record_new");
}
@Override
public void removeTemplateRecord(Query query) {
mongoTemplate.remove(query, TemplateRecord.class, "automaticmark_template_record");
mongoTemplate.remove(query, TemplateRecord.class, "automaticmark_template_record_new");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment