Unverified Commit 5856d76e by Spencer Gibb

Merge branch '1.3.x'

parents e2954d01 86b1f6ed
...@@ -26,7 +26,7 @@ import org.aspectj.lang.annotation.Aspect; ...@@ -26,7 +26,7 @@ import org.aspectj.lang.annotation.Aspect;
@Aspect @Aspect
public class RestTemplateUrlTemplateCapturingAspect { public class RestTemplateUrlTemplateCapturingAspect {
@Around("execution(* org.springframework.web.client.RestOperations+.*(String, ..))") @Around("execution(* org.springframework.web.client.RestOperations+.*(String, ..))")
Object captureUrlTemplate(ProceedingJoinPoint joinPoint) throws Throwable { public Object captureUrlTemplate(ProceedingJoinPoint joinPoint) throws Throwable {
try { try {
String urlTemplate = (String) joinPoint.getArgs()[0]; String urlTemplate = (String) joinPoint.getArgs()[0];
RestTemplateUrlTemplateHolder.setRestTemplateUrlTemplate(urlTemplate); RestTemplateUrlTemplateHolder.setRestTemplateUrlTemplate(urlTemplate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment