Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit b3c4cd5

Browse files
authored
Add constructor that takes RestTemplate (#5090)
1 parent 9e8d36a commit b3c4cd5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-cloud-dataflow-rest-client/src/main/java/org/springframework/cloud/dataflow/rest/client/config/DataFlowClientAutoConfiguration.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public class DataFlowClientAutoConfiguration {
7878
@Autowired
7979
private DataFlowClientProperties properties;
8080

81-
@Autowired(required = false)
8281
private RestTemplate restTemplate;
8382

8483
@Autowired
@@ -90,6 +89,10 @@ public class DataFlowClientAutoConfiguration {
9089
@Autowired
9190
private @Nullable OAuth2ClientProperties oauth2ClientProperties;
9291

92+
public DataFlowClientAutoConfiguration(@Nullable RestTemplate restTemplate) {
93+
this.restTemplate = restTemplate;
94+
}
95+
9396
@Bean
9497
@ConditionalOnMissingBean(DataFlowOperations.class)
9598
public DataFlowOperations dataFlowOperations() throws Exception{

0 commit comments

Comments
 (0)