We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如题。在各个模块加载自己上下文时控制台会大量打印“Component was already registered:xxxx”。 重复的扫描让项目启动时间变得很长。二三十分钟启动真的很难以接受。
The text was updated successfully, but these errors were encountered:
检查一下是不是配置的ComponentScan里的扫描路径有重叠
Sorry, something went wrong.
没有重叠,出现问题的是当前项目下的common-dal中的mapper类。通过MapperScan指定了扫描路径,但是在SpringContextInstallStage类的doRefreshSpringContext方法中,多线程去刷新各个模块上下文(ctx.refresh())的时候,应该是每个线程都重复去扫描了
@xycf2233 你好,可以给出一个示例代码来复现这个问题吗
No branches or pull requests
如题。在各个模块加载自己上下文时控制台会大量打印“Component was already registered:xxxx”。
重复的扫描让项目启动时间变得很长。二三十分钟启动真的很难以接受。
The text was updated successfully, but these errors were encountered: