|
@@ -1,8 +1,5 @@
|
|
|
package cn.com.qmth.examcloud.core.oe.student.face.starter;
|
|
|
|
|
|
-import cn.com.qmth.examcloud.core.oe.student.face.service.FaceLivenessService;
|
|
|
-import cn.com.qmth.examcloud.web.bootstrap.AppBootstrap;
|
|
|
-import cn.com.qmth.examcloud.web.support.SpringContextHolder;
|
|
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.boot.autoconfigure.domain.EntityScan;
|
|
@@ -18,6 +15,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
import org.springframework.web.multipart.MultipartResolver;
|
|
|
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.web.bootstrap.AppBootstrap;
|
|
|
|
|
|
@SpringBootApplication
|
|
|
@Configuration
|
|
@@ -38,6 +36,7 @@ public class CoreOeStudentFaceApp {
|
|
|
}
|
|
|
System.setProperty("hibernate.dialect.storage_engine", "innodb");
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* main
|
|
|
*
|
|
@@ -47,22 +46,9 @@ public class CoreOeStudentFaceApp {
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
AppBootstrap.run(CoreOeStudentFaceApp.class, args);
|
|
|
test();
|
|
|
-
|
|
|
}
|
|
|
|
|
|
- private static void test(){
|
|
|
-// for (int i=0;i<9999;i++){
|
|
|
-// FaceLivenessService bean = SpringContextHolder.getBean(FaceLivenessService.class);
|
|
|
-// String url="https://ecs-static.qmth.com.cn/capture_photo/371/238506/1566876134275.png";
|
|
|
-// System.out.println(bean.getBaiduFaceLivenessResultJson(url));
|
|
|
-//
|
|
|
-// url="https://ecs-static.qmth.com.cn/capture_photo/371/238506/1566876142935.png";
|
|
|
-// System.out.println(bean.getBaiduFaceLivenessResultJson(url));
|
|
|
-//
|
|
|
-// url="https://ecs-static.qmth.com.cn/capture_photo/371/238506/1566876143331.png";
|
|
|
-// System.out.println(bean.getBaiduFaceLivenessResultJson(url));
|
|
|
-//
|
|
|
-// }
|
|
|
+ private static void test() {
|
|
|
}
|
|
|
|
|
|
@Bean(name = "multipartResolver")
|