Commit 7425b06c by fudahua

测试

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