1、pom加入自定义maven路径,解决部分用户下载后maven路径不识别问题
2、pom修改编译打包为1.8 3、去除超过jdk1.8版本的语法
This commit is contained in:
5
pom.xml
5
pom.xml
@@ -8,13 +8,14 @@
|
|||||||
<artifactId>redbbs</artifactId>
|
<artifactId>redbbs</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<build>
|
<build>
|
||||||
|
<sourceDirectory>src</sourceDirectory>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>11</source>
|
<source>1.8</source>
|
||||||
<target>11</target>
|
<target>1.8</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
@@ -24,6 +24,7 @@ import org.redkale.source.Flipper;
|
|||||||
import org.redkale.util.AnyValue;
|
import org.redkale.util.AnyValue;
|
||||||
import org.redkale.util.Comment;
|
import org.redkale.util.Comment;
|
||||||
import org.redkale.util.Sheet;
|
import org.redkale.util.Sheet;
|
||||||
|
import org.redkale.util.Utility;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
@@ -138,7 +139,7 @@ public class TaskQueue<T extends Object> extends BaseService implements Runnable
|
|||||||
" sort total desc\n" +
|
" sort total desc\n" +
|
||||||
" limit 10\n" +
|
" limit 10\n" +
|
||||||
" return {name: uri,total:total}",
|
" return {name: uri,total:total}",
|
||||||
Map.of("time", cal.getTimeInMillis()),
|
Utility.ofMap("time", cal.getTimeInMillis()),
|
||||||
Count.class);
|
Count.class);
|
||||||
|
|
||||||
Function<List<Count>, List<Integer>> deal = (counts) -> {
|
Function<List<Count>, List<Integer>> deal = (counts) -> {
|
||||||
|
@@ -225,17 +225,6 @@ public class UserRecord implements java.io.Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String md5IfNeed(String password){
|
public static String md5IfNeed(String password){
|
||||||
if (password == null || password.isEmpty()) return "";
|
return Utility.md5Hex(password);
|
||||||
if (password.length() == 32) return password;
|
|
||||||
MessageDigest md5 = null;
|
|
||||||
try {
|
|
||||||
md5 = MessageDigest.getInstance("MD5");
|
|
||||||
} catch (NoSuchAlgorithmException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
byte[] bytes = password.trim().getBytes();
|
|
||||||
bytes = md5.digest(bytes);
|
|
||||||
return new String(Utility.binToHex(bytes));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user