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