|
@@ -1,15 +1,12 @@
|
|
|
package com.awspaas.user.apps.donenow_sys.controller;
|
|
package com.awspaas.user.apps.donenow_sys.controller;
|
|
|
|
|
|
|
|
-import com.actionsoft.bpms.bo.engine.BO;
|
|
|
|
|
-import com.actionsoft.bpms.commons.formfile.model.delegate.FormFile;
|
|
|
|
|
import com.actionsoft.bpms.commons.htmlframework.HtmlPageTemplate;
|
|
import com.actionsoft.bpms.commons.htmlframework.HtmlPageTemplate;
|
|
|
-import com.actionsoft.bpms.server.UserContext;
|
|
|
|
|
import com.actionsoft.bpms.server.bind.annotation.Controller;
|
|
import com.actionsoft.bpms.server.bind.annotation.Controller;
|
|
|
import com.actionsoft.bpms.server.bind.annotation.Mapping;
|
|
import com.actionsoft.bpms.server.bind.annotation.Mapping;
|
|
|
-import com.actionsoft.bpms.server.fs.DCContext;
|
|
|
|
|
import com.actionsoft.sdk.local.SDK;
|
|
import com.actionsoft.sdk.local.SDK;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
+import org.apache.commons.math3.util.Pair;
|
|
|
import org.jsoup.Jsoup;
|
|
import org.jsoup.Jsoup;
|
|
|
import org.jsoup.nodes.Document;
|
|
import org.jsoup.nodes.Document;
|
|
|
import org.jsoup.nodes.Element;
|
|
import org.jsoup.nodes.Element;
|
|
@@ -19,21 +16,13 @@ import javax.crypto.KeyGenerator;
|
|
|
import javax.crypto.SecretKey;
|
|
import javax.crypto.SecretKey;
|
|
|
import javax.crypto.spec.IvParameterSpec;
|
|
import javax.crypto.spec.IvParameterSpec;
|
|
|
import javax.crypto.spec.SecretKeySpec;
|
|
import javax.crypto.spec.SecretKeySpec;
|
|
|
-import java.io.File;
|
|
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLEncoder;
|
|
import java.net.URLEncoder;
|
|
|
import java.nio.charset.StandardCharsets;
|
|
import java.nio.charset.StandardCharsets;
|
|
|
-import java.nio.file.Files;
|
|
|
|
|
-import java.nio.file.Path;
|
|
|
|
|
-import java.nio.file.Paths;
|
|
|
|
|
-import java.nio.file.StandardCopyOption;
|
|
|
|
|
import java.security.SecureRandom;
|
|
import java.security.SecureRandom;
|
|
|
-import java.time.LocalDateTime;
|
|
|
|
|
-import java.time.format.DateTimeFormatter;
|
|
|
|
|
import java.util.Base64;
|
|
import java.util.Base64;
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
@Controller
|
|
@Controller
|
|
@@ -554,4 +543,14 @@ public class testController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ public Pair<String, Integer> getUserInfo() {
|
|
|
|
|
+ String username = "zhangsan";
|
|
|
|
|
+ int userId = 1001;
|
|
|
|
|
+
|
|
|
|
|
+ // 创建不可变的Pair对象(推荐,线程安全)
|
|
|
|
|
+
|
|
|
|
|
+ return Pair.create(username, userId);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|