Commit 7425b06c by fudahua

测试

parent 4e6c4c66
...@@ -10,6 +10,7 @@ import com.gic.wechat.api.dto.qywx.QywxXcxSendMessageDTO; ...@@ -10,6 +10,7 @@ import com.gic.wechat.api.dto.qywx.QywxXcxSendMessageDTO;
import com.gic.wechat.api.service.qywx.QywxSuiteApiService; import com.gic.wechat.api.service.qywx.QywxSuiteApiService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -59,14 +60,14 @@ public class TestController extends WebBaseController { ...@@ -59,14 +60,14 @@ public class TestController extends WebBaseController {
} }
@RequestMapping("/test-dubbo") @RequestMapping("/test-dubbo")
public HaobanResponse dubbo(String cid) { public HaobanResponse dubbo(@RequestParam(defaultValue = "2000") Integer n,@RequestParam(defaultValue = "100") String t) {
int i=2000; int i=n;
while (i-->0) { while (i-->0) {
int finalI = i; int finalI = i;
pools.execute(new Runnable(){ pools.execute(new Runnable(){
@Override @Override
public void run() { public void run() {
testApiService.checkThread(finalI +"",100L); testApiService.checkThread(finalI +"",Long.valueOf(t));
} }
}); });
} }
......
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