From 3c4d6a6f7a4c538c22943d66efec56152160beca Mon Sep 17 00:00:00 2001 From: yangpengming Date: Fri, 1 Sep 2023 15:57:10 +0800 Subject: [PATCH] =?UTF-8?q?long=20=E8=BD=ACint=20=E8=B6=85=E5=87=BAint?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/service/impl/DataServiceImpl.java | 2 +- 学习总结/本地编译常见问题.md | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 学习总结/本地编译常见问题.md diff --git a/austin-web/src/main/java/com/java3y/austin/web/service/impl/DataServiceImpl.java b/austin-web/src/main/java/com/java3y/austin/web/service/impl/DataServiceImpl.java index 5925795..0e0a9f6 100644 --- a/austin-web/src/main/java/com/java3y/austin/web/service/impl/DataServiceImpl.java +++ b/austin-web/src/main/java/com/java3y/austin/web/service/impl/DataServiceImpl.java @@ -71,7 +71,7 @@ public class DataServiceImpl implements DataService { } // 0. 按时间排序 - List sortAnchorList = userInfoList.stream().map(s -> JSON.parseObject(s, SimpleAnchorInfo.class)).sorted((o1, o2) -> Math.toIntExact(o1.getTimestamp() - o2.getTimestamp())).collect(Collectors.toList()); + List sortAnchorList = userInfoList.stream().map(s -> JSON.parseObject(s, SimpleAnchorInfo.class)).sorted(Comparator.comparing(SimpleAnchorInfo::getTimestamp).reversed()).collect(Collectors.toList()); return buildUserTimeLineVo(sortAnchorList); } diff --git a/学习总结/本地编译常见问题.md b/学习总结/本地编译常见问题.md new file mode 100644 index 0000000..64a3634 --- /dev/null +++ b/学习总结/本地编译常见问题.md @@ -0,0 +1,24 @@ +# 1. 编译问题总结 +* 问题1 +``` +解决IDEA中打包时报:Could not transfer artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde问题 +``` +解决方法: +在maven下的setting.xml文件中加入下面的镜像配置内容 +``` + + alimaven + aliyun maven + http://maven.aliyun.com/nexus/content/groups/public/ + central + + + + aliyunmaven + * + spring-plugin + https://maven.aliyun.com/repository/spring-plugin + +``` +最后再进行编译`mvn clean instanll -Dmaven.test.skip -U` +