File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
src/frontend/src/main/java/com/alibabacloud/hipstershop/web Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments