|
@@ -25,6 +25,7 @@ import org.apache.http.impl.client.HttpClients;
|
|
|
import org.apache.http.impl.client.LaxRedirectStrategy;
|
|
|
import org.apache.http.ssl.SSLContextBuilder;
|
|
|
import org.apache.http.util.EntityUtils;
|
|
|
+import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -104,6 +105,7 @@ public class DahuaOperateLogBlackTask {
|
|
|
// private String userName = "system";
|
|
|
// private String userPwd = "Admin123";
|
|
|
|
|
|
+ @Async
|
|
|
@RequestMapping(value = "/configureBlackTasks", method = POST)
|
|
|
public void configureBlackTasks() {
|
|
|
long startTimeMillis = System.currentTimeMillis(); // 记录开始时间
|