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 47
47
<dependency >
48
48
<groupId >org.apache.httpcomponents</groupId >
49
49
<artifactId >httpclient</artifactId >
50
+ <version >4.5.13</version >
50
51
</dependency >
51
52
</dependencies >
52
53
91
92
</execution >
92
93
</executions >
93
94
</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 >
94
103
</plugins >
95
104
<finalName >${project.artifactId} </finalName >
96
105
</build >
Original file line number Diff line number Diff line change 1
1
package com .alibabcloud .mse .demo ;
2
2
3
3
4
+ import jakarta .annotation .PostConstruct ;
4
5
import org .apache .http .client .methods .HttpGet ;
5
6
import org .apache .http .impl .client .CloseableHttpClient ;
6
7
import org .apache .http .impl .client .HttpClientBuilder ;
12
13
import org .springframework .web .bind .annotation .GetMapping ;
13
14
import org .springframework .web .client .RestTemplate ;
14
15
15
- import javax .annotation .PostConstruct ;
16
16
import java .util .Random ;
17
17
import java .util .concurrent .Executors ;
18
18
import java .util .concurrent .ScheduledExecutorService ;
You can’t perform that action at this time.
0 commit comments