File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
spring-cloud-bamboo/src/main/java/cn/springcloud/bamboo/feign Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ public class BambooFeignClient implements Client {
21
21
private Client delegate ;
22
22
private BambooProperties bambooProperties ;
23
23
24
-
25
- public BambooFeignClient (Client delegate ) {
24
+ public BambooFeignClient (BambooProperties bambooProperties , Client delegate ) {
26
25
this .delegate = delegate ;
26
+ this .bambooProperties = bambooProperties ;
27
27
}
28
28
29
29
@ Override
Original file line number Diff line number Diff line change 1
1
package cn .springcloud .bamboo .feign .config ;
2
2
3
+ import cn .springcloud .bamboo .autoconfig .properties .BambooProperties ;
3
4
import cn .springcloud .bamboo .feign .BambooFeignClient ;
4
5
import feign .Client ;
5
6
import org .springframework .beans .factory .annotation .Autowired ;
@@ -12,10 +13,12 @@ public class BambooFeignClientsConfiguration {
12
13
13
14
@ Autowired
14
15
private Client feignClient ;
16
+ @ Autowired
17
+ private BambooProperties bambooProperties ;
15
18
16
19
@ Bean
17
20
public Client bambooFeignClient () {
18
- return new BambooFeignClient (feignClient );
21
+ return new BambooFeignClient (bambooProperties , feignClient );
19
22
}
20
23
21
24
}
You can’t perform that action at this time.
0 commit comments