Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
TDLCloud
Project
Project
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
WitCloud
TDLCloud
Commits
835e06d9
Commit
835e06d9
authored
Nov 05, 2019
by
zhuangzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改查询当前线程数量的接口权限
parent
61ad2edc
Pipeline
#96
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
MyWebMvcConfigurer.java
src/main/java/com/example/tdl/config/MyWebMvcConfigurer.java
+2
-0
ServiceController.java
src/main/java/com/example/tdl/web/ServiceController.java
+6
-0
No files found.
src/main/java/com/example/tdl/config/MyWebMvcConfigurer.java
View file @
835e06d9
...
...
@@ -25,11 +25,13 @@ public class MyWebMvcConfigurer extends WebMvcConfigurerAdapter {
registry
.
addInterceptor
(
loginInterceptor
())
.
excludePathPatterns
(
"/alarmLog/addAlarmLog"
)
.
excludePathPatterns
(
"/login/**"
)
.
excludePathPatterns
(
"/service/**"
)
.
excludePathPatterns
(
"/getData"
);
registry
.
addInterceptor
(
permissionInterceptor
())
.
excludePathPatterns
(
"/login/**"
)
.
excludePathPatterns
(
"/alarmLog/addAlarmLog"
)
.
excludePathPatterns
(
"/side/**"
)
.
excludePathPatterns
(
"/service/**"
)
.
excludePathPatterns
(
"/downLoad"
)
.
excludePathPatterns
(
"/getAddress"
)
.
excludePathPatterns
(
"/test"
)
...
...
src/main/java/com/example/tdl/web/ServiceController.java
View file @
835e06d9
...
...
@@ -3,6 +3,8 @@ package com.example.tdl.web;
import
com.example.tdl.domain.dto.RestResponse
;
import
com.example.tdl.domain.dto.Result
;
import
com.google.gson.JsonObject
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
...
...
@@ -18,6 +20,10 @@ public class ServiceController {
private
ThreadPoolTaskExecutor
taskExecutor
;
@GetMapping
(
value
=
"/getThreadPool"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"header"
,
name
=
"Account_token"
,
value
=
"token"
,
required
=
true
,
dataType
=
"String"
),
@ApiImplicitParam
(
paramType
=
"header"
,
name
=
"AccountLanguage"
,
value
=
"language"
,
required
=
false
,
dataType
=
"String"
),
})
public
ResponseEntity
<
String
>
getThreadPool
()
{
try
{
JsonObject
jsonObject
=
new
JsonObject
();
...
...
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