Commit 835e06d9 authored by zhuangzhuang's avatar zhuangzhuang

1.修改查询当前线程数量的接口权限

parent 61ad2edc
Pipeline #96 passed with stage
in 0 seconds
......@@ -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")
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment