Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@LogRecord注解嵌套的问题 #168

Open
vens-cy opened this issue Sep 12, 2024 · 2 comments
Open

@LogRecord注解嵌套的问题 #168

vens-cy opened this issue Sep 12, 2024 · 2 comments

Comments

@vens-cy
Copy link

vens-cy commented Sep 12, 2024

假设我在service里面有一个A(), A里面会调用API访问B(),在A()和B()的上面都加了注解@LogRecord,这两个注解只会生效一个,有时候是B上面的生效,有时候是A上面的生效。有没有什么办法让两个都生效呢?

@uliian
Copy link

uliian commented Sep 23, 2024

你的A、B方法是不是都在同一个class里?

@Justin-Binber
Copy link

        TextServiceImpl textServiceProxy = applicationContext.getBean(TextServiceImpl.class);
        return textServiceProxy.createAuditText(createReqVO);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants