Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
miria-project-test
Project
Project
Details
Activity
Releases
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
张征龙
miria-project-test
Commits
f1c48fc5
Commit
f1c48fc5
authored
Apr 12, 2018
by
张征龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一直打log
parent
d44a13bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
Application.java
...ain/java/cn/com/duiba/miria/project/test/Application.java
+19
-0
MonitorController.java
...uiba/miria/project/test/controller/MonitorController.java
+2
-1
No files found.
src/main/java/cn/com/duiba/miria/project/test/Application.java
View file @
f1c48fc5
package
cn
.
com
.
duiba
.
miria
.
project
.
test
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@Slf4j
@SpringBootApplication
public
class
Application
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
sa
=
new
SpringApplication
(
Application
.
class
);
sa
.
run
(
args
);
java
.
lang
.
Thread
t
=
new
java
.
lang
.
Thread
(
new
Runnable
()
{
@Override
public
void
run
()
{
try
{
while
(
true
)
{
log
.
info
(
"log test,time:{}"
,
System
.
currentTimeMillis
());
Thread
.
sleep
(
3000
);
}
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
}
});
t
.
run
();
}
}
src/main/java/cn/com/duiba/miria/project/test/controller/MonitorController.java
View file @
f1c48fc5
...
...
@@ -29,7 +29,8 @@ public class MonitorController {
public
String
check
(){
String
res
=
"ok"
;
log
.
info
(
"连接{}"
,
res
);
log
.
info
(
""
+
System
.
currentTimeMillis
());
log
.
info
(
""
+
System
.
currentTimeMillis
());
return
res
;
}
@RequestMapping
(
value
=
"test"
,
method
=
RequestMethod
.
GET
)
...
...
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