Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
雷紫添
xzxt-api-report
Commits
fe8b17dd
Commit
fe8b17dd
authored
Sep 05, 2019
by
雷紫添
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加测试
parent
9bbbab2e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
2 deletions
+17
-2
src/main/java/com/founder/Application.java
+2
-0
src/main/java/com/founder/controller/FaceController.java
+7
-2
src/main/java/com/founder/service/FaceService.java
+3
-0
src/main/java/com/founder/service/impl/FaceServiceImpl.java
+5
-0
No files found.
src/main/java/com/founder/Application.java
View file @
fe8b17dd
...
@@ -3,8 +3,10 @@ package com.founder;
...
@@ -3,8 +3,10 @@ package com.founder;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.scheduling.annotation.EnableAsync
;
@SpringBootApplication
@SpringBootApplication
@EnableAsync
@ComponentScan
(
basePackages
=
{
"com.founder.*"
})
@ComponentScan
(
basePackages
=
{
"com.founder.*"
})
public
class
Application
{
public
class
Application
{
...
...
src/main/java/com/founder/controller/FaceController.java
View file @
fe8b17dd
...
@@ -23,9 +23,14 @@ import java.util.List;
...
@@ -23,9 +23,14 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
@RestController
@RestController
public
class
FaceController
{
public
class
FaceController
{
@Autowired
private
FaceService
faceService
;
@ResponseBody
@ResponseBody
@RequestMapping
(
"/query"
)
@RequestMapping
(
"/query"
)
public
String
query
()
{
public
String
query
()
{
System
.
out
.
println
(
"1111111111111111111"
);
faceService
.
sync
();;
System
.
out
.
println
(
"33333333333333333"
);
/* List<Face> face = faceService.query();
/* List<Face> face = faceService.query();
for (Map<String, String> item : codeMsg.getStatus()) {
for (Map<String, String> item : codeMsg.getStatus()) {
if (item.get("code").equals("001"))
if (item.get("code").equals("001"))
...
@@ -36,7 +41,7 @@ public class FaceController {
...
@@ -36,7 +41,7 @@ public class FaceController {
System.out.println(item.get("name"));
System.out.println(item.get("name"));
}
}
});*/
});*/
final
Base64
.
Decoder
decoder
=
Base64
.
getDecoder
();
/*
final Base64.Decoder decoder = Base64.getDecoder();
final Base64.Encoder encoder = Base64.getEncoder();
final Base64.Encoder encoder = Base64.getEncoder();
Jccj jccj =new Jccj();
Jccj jccj =new Jccj();
try {
try {
...
@@ -66,7 +71,7 @@ public class FaceController {
...
@@ -66,7 +71,7 @@ public class FaceController {
System.out.println("返回的参数为::"+jsonResult.toJSONString());
System.out.println("返回的参数为::"+jsonResult.toJSONString());
} catch (IOException e) {
} catch (IOException e) {
e.printStackTrace();
e.printStackTrace();
}
}
*/
return
"已执行"
;
return
"已执行"
;
}
}
...
...
src/main/java/com/founder/service/FaceService.java
View file @
fe8b17dd
...
@@ -2,6 +2,7 @@ package com.founder.service;
...
@@ -2,6 +2,7 @@ package com.founder.service;
import
com.founder.model.Face
;
import
com.founder.model.Face
;
import
org.springframework.scheduling.annotation.Async
;
import
java.util.List
;
import
java.util.List
;
...
@@ -10,4 +11,6 @@ import java.util.List;
...
@@ -10,4 +11,6 @@ import java.util.List;
*/
*/
public
interface
FaceService
{
public
interface
FaceService
{
public
List
<
Face
>
query
();
public
List
<
Face
>
query
();
@Async
public
void
sync
();
}
}
src/main/java/com/founder/service/impl/FaceServiceImpl.java
View file @
fe8b17dd
...
@@ -21,4 +21,9 @@ public class FaceServiceImpl implements FaceService {
...
@@ -21,4 +21,9 @@ public class FaceServiceImpl implements FaceService {
List
<
Face
>
face
=
faceDao
.
query
();
List
<
Face
>
face
=
faceDao
.
query
();
return
face
;
return
face
;
}
}
@Override
public
void
sync
()
{
System
.
out
.
println
(
"22222222222222"
);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment