|
@@ -1,4 +1,4 @@
|
|
-package cn.com.qmth.examcloud.commons.web.support;
|
|
|
|
|
|
+package cn.com.qmth.examcloud.web.support;
|
|
|
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.concurrent.TimeUnit;
|
|
@@ -16,10 +16,10 @@ import org.springframework.web.bind.annotation.PutMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-import cn.com.qmth.examcloud.commons.base.util.DateUtil;
|
|
|
|
-import cn.com.qmth.examcloud.commons.base.util.PropertiesUtil;
|
|
|
|
-import cn.com.qmth.examcloud.commons.web.interceptor.Seqlock;
|
|
|
|
-import cn.com.qmth.examcloud.commons.web.interceptor.SessionSeqlock;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.commons.util.DateUtil;
|
|
|
|
+import cn.com.qmth.examcloud.commons.util.PropertiesUtil;
|
|
|
|
+import cn.com.qmth.examcloud.web.interceptor.Seqlock;
|
|
|
|
+import cn.com.qmth.examcloud.web.interceptor.SessionSeqlock;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -81,7 +81,7 @@ public class SystemController extends ControllerSupport {
|
|
@GetMapping("seqlock")
|
|
@GetMapping("seqlock")
|
|
@Seqlock
|
|
@Seqlock
|
|
public String seqlock() {
|
|
public String seqlock() {
|
|
- cn.com.qmth.examcloud.commons.base.util.Util.sleep(TimeUnit.SECONDS, 1);
|
|
|
|
|
|
+ cn.com.qmth.examcloud.commons.util.Util.sleep(TimeUnit.SECONDS, 1);
|
|
return DateUtil.getNowISO();
|
|
return DateUtil.getNowISO();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -89,7 +89,7 @@ public class SystemController extends ControllerSupport {
|
|
@GetMapping("sessionSeqlock")
|
|
@GetMapping("sessionSeqlock")
|
|
@SessionSeqlock
|
|
@SessionSeqlock
|
|
public String sessionSeqlock() {
|
|
public String sessionSeqlock() {
|
|
- cn.com.qmth.examcloud.commons.base.util.Util.sleep(TimeUnit.SECONDS, 1);
|
|
|
|
|
|
+ cn.com.qmth.examcloud.commons.util.Util.sleep(TimeUnit.SECONDS, 1);
|
|
return DateUtil.getNowISO();
|
|
return DateUtil.getNowISO();
|
|
}
|
|
}
|
|
|
|
|