Removed property setting of proxy targetClass

This commit is contained in:
Marcin Grzejszczak
2017-07-06 16:08:16 +02:00
parent d37231b828
commit 931b3b7f3b

View File

@@ -53,10 +53,6 @@ public class TraceEnvironmentPostProcessor implements EnvironmentPostProcessor {
// traces in logs without having to configure it.
map.put("logging.pattern.level",
"%5p [${spring.zipkin.service.name:${spring.application.name:-}},%X{X-B3-TraceId:-},%X{X-B3-SpanId:-},%X{X-Span-Export:-}]");
// TODO: Remove this in 2.0.x. For compatibility we always set to true
if (!environment.containsProperty(SPRING_AOP_PROXY_TARGET_CLASS)) {
map.put(SPRING_AOP_PROXY_TARGET_CLASS, "true");
}
addOrReplace(environment.getPropertySources(), map);
}