Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
173f5554
Commit
173f5554
authored
May 21, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gic跳转登录
parent
26177b1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletions
+28
-1
TestApiService.java
...ava/com/gic/haoban/manage/api/service/TestApiService.java
+6
-0
TestServiceImpl.java
...oban/manage/service/service/out/impl/TestServiceImpl.java
+22
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/TestApiService.java
View file @
173f5554
...
@@ -4,4 +4,10 @@ package com.gic.haoban.manage.api.service;
...
@@ -4,4 +4,10 @@ package com.gic.haoban.manage.api.service;
* Created by tgs on 2020/2/9.
* Created by tgs on 2020/2/9.
*/
*/
public
interface
TestApiService
{
public
interface
TestApiService
{
/**
* 测试
* @param id
* @return
*/
public
String
checkThread
(
String
id
,
Long
expireTime
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/TestServiceImpl.java
View file @
173f5554
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
out
.
impl
;
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
out
.
impl
;
import
com.gic.haoban.manage.api.service.TestApiService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Service
;
/**
/**
* Created by tgs on 2020/2/9.
* Created by tgs on 2020/2/9.
*/
*/
public
class
TestServiceImpl
{
@Service
public
class
TestServiceImpl
implements
TestApiService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
TestServiceImpl
.
class
);
@Override
public
String
checkThread
(
String
id
,
Long
expireTime
)
{
logger
.
info
(
"测试-start:{}"
,
id
);
if
(
expireTime
!=
null
&&
expireTime
>
0
)
{
logger
.
info
(
"延时:{}"
,
expireTime
);
try
{
Thread
.
sleep
(
expireTime
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
}
logger
.
info
(
"测试-end:{}"
,
id
);
return
id
;
}
}
}
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