Skip to content

Commit 0f2bd8a

Browse files
committed
add ability to customize RestTemplateBuilder
1 parent 1f8c79d commit 0f2bd8a

File tree

1 file changed

+1
-0
lines changed
  • lib/src/main/resources/handlebars/springcodegen/libraries/client

1 file changed

+1
-0
lines changed

lib/src/main/resources/handlebars/springcodegen/libraries/client/api.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import org.springframework.util.StringUtils;
3636
3737
private final RestTemplate restTemplate;
3838
39+
@SuppressWarnings("unchecked")
3940
public {{classname}}(RestTemplateBuilder builder, ListableBeanFactory factory, {{=<% %>=}}@Value("${<%vendorExtensions.x-path-variable-name%>}")<%={{ }}=%> String url) {
4041
List<Function<RestTemplateBuilder, RestTemplateBuilder>> builderCustomizers = factory.getBeansOfType(Function.class).entrySet().stream()
4142
.filter(e -> BeanFactoryAnnotationUtils.isQualifierMatch(s -> REST_API_QUALIFIER.equals(s) || MODULE_SPECIFIC_QUALIFIER.equals(s), e.getKey(), factory))

0 commit comments

Comments
 (0)