Skip to content

Commit 05d309f

Browse files
committed
to #6
1 parent 7993368 commit 05d309f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package com.alibabacloud.hipstershop.web;
2+
3+
import java.util.ArrayList;
4+
import java.util.Random;
5+
6+
import org.springframework.web.bind.annotation.RequestMapping;
7+
import org.springframework.web.bind.annotation.RequestMethod;
8+
import org.springframework.web.bind.annotation.RestController;
9+
10+
/**
11+
* @author yizhan.xj
12+
*/
13+
14+
@RestController
15+
@RequestMapping("/scale")
16+
public class ScaleController {
17+
18+
@RequestMapping(value = "/begin", method = RequestMethod.GET)
19+
public String index() {
20+
21+
Random r = new Random(100);
22+
String str = "fwljfdsklvnxcewewrewrew12wre5rewf1ew2few4few2few2few3few3few5fsd1sdewu3249gdfkvdvx"
23+
+ "wefsdjfewvmdxlvdsfofewmvdmvfd;lvds;vds;vdsvdsxcnzgewgdfuvxmvx.;f"
24+
+ "fsaffsdjlvcx.vcxgdfjkf;dsfdas#vdsjlfdsmv.xc.vcxjk;fewipvdmsvzlfsjlf;afdjsl;fdsp[euiprenvs"
25+
+ "fsdovxc.vmxceworupg;";
26+
float i = r.nextFloat();
27+
float j = 232.13243f;
28+
ArrayList<String> list = new ArrayList<String>();
29+
for (int x = 0; x < 10; x++) {
30+
for (int k = 0; k < 10000; k++) {
31+
j = i * j;
32+
list.add(str + String.valueOf(j));
33+
}
34+
}
35+
36+
return "success";
37+
}
38+
39+
}

0 commit comments

Comments
 (0)