Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnxtbaboot
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
杨亮
hnxtbaboot
Commits
296d6396
Commit
296d6396
authored
Jul 02, 2021
by
wuchengwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的设备管理:新增设备时耗时监控
parent
cb6bcb4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
src/main/java/com/founder/cjqx/controller/SysClientVpController.java
+9
-1
No files found.
src/main/java/com/founder/cjqx/controller/SysClientVpController.java
View file @
296d6396
...
...
@@ -12,6 +12,7 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.util.StopWatch
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
...
...
@@ -181,9 +182,16 @@ public class SysClientVpController {
@GetMapping
(
"/newSheb"
)
public
String
newSheb
(
HttpServletRequest
request
,
HttpServletResponse
response
,
Model
model
)
{
try
{
StopWatch
stopWatch
=
new
StopWatch
();
stopWatch
.
start
(
"获取本地ip耗时:"
);
String
ip
=
SysUitl
.
getIp
(
request
);
stopWatch
.
stop
();
stopWatch
.
start
(
"获取本地mac地址耗时:"
);
String
mac
=
SysUitl
.
getkhdMac
(
ip
);
stopWatch
.
stop
();
System
.
out
.
println
(
"本地ip与mac耗时百分比:"
+
stopWatch
.
prettyPrint
());
model
.
addAttribute
(
"sip"
,
ip
);
model
.
addAttribute
(
"mac"
,
SysUitl
.
getkhdMac
(
ip
)
);
model
.
addAttribute
(
"mac"
,
mac
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
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