File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
mse-simple-demo/SpringCloudGateway
src/main/java/com/alibabcloud/mse/demo Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 4747 <dependency >
4848 <groupId >org.apache.httpcomponents</groupId >
4949 <artifactId >httpclient</artifactId >
50+ <version >4.5.13</version >
5051 </dependency >
5152 </dependencies >
5253
9192 </execution >
9293 </executions >
9394 </plugin >
95+ <plugin >
96+ <groupId >org.apache.maven.plugins</groupId >
97+ <artifactId >maven-compiler-plugin</artifactId >
98+ <configuration >
99+ <source >8</source >
100+ <target >8</target >
101+ </configuration >
102+ </plugin >
94103 </plugins >
95104 <finalName >${project.artifactId} </finalName >
96105 </build >
Original file line number Diff line number Diff line change 11package com .alibabcloud .mse .demo ;
22
33
4+ import jakarta .annotation .PostConstruct ;
45import org .apache .http .client .methods .HttpGet ;
56import org .apache .http .impl .client .CloseableHttpClient ;
67import org .apache .http .impl .client .HttpClientBuilder ;
1213import org .springframework .web .bind .annotation .GetMapping ;
1314import org .springframework .web .client .RestTemplate ;
1415
15- import javax .annotation .PostConstruct ;
1616import java .util .Random ;
1717import java .util .concurrent .Executors ;
1818import java .util .concurrent .ScheduledExecutorService ;
You can’t perform that action at this time.
0 commit comments