fix: Fixed jar package mounting and startup problem in Agent mode

pull/1573/head
Pan-YuJie 12 months ago
parent c521a97388
commit 95336d7fed

@ -36,7 +36,7 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
*/ */
public class ApplicationContextInstrumentation extends ClassInstanceMethodsEnhancePluginDefine { public class ApplicationContextInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
private static final String ENHANCE_CLASS = "org.springframework.context.support.AbstractApplicationContext"; private static final String ENHANCE_CLASS = "org.springframework.boot.context.event.EventPublishingRunListener";
private static final String APPLICATION_CONTEXT_REFRESH_INTERCEPTOR = "cn.hippo4j.agent.plugin.spring.boot.v1.interceptor.ApplicationContextInterceptor"; private static final String APPLICATION_CONTEXT_REFRESH_INTERCEPTOR = "cn.hippo4j.agent.plugin.spring.boot.v1.interceptor.ApplicationContextInterceptor";
@ -56,7 +56,7 @@ public class ApplicationContextInstrumentation extends ClassInstanceMethodsEnhan
@Override @Override
public ElementMatcher<MethodDescription> getMethodsMatcher() { public ElementMatcher<MethodDescription> getMethodsMatcher() {
return named("refresh"); return named("finished");
} }
@Override @Override

Loading…
Cancel
Save