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

在使用elasticjob-lite-spring-boot-starter开发手动触发任务时,报错,找不到指定的bean #2389

Open
yoboygo opened this issue Mar 15, 2024 · 0 comments

Comments

@yoboygo
Copy link

yoboygo commented Mar 15, 2024

根据文档的说明,在配置手动任务时指定jobBootstrapBeanName的名字,会自动创建OneOffJobBootstrap实例,然后在controller里直接注入即可。但是在实际使用的过程中发现,bean的加载顺序有点问题,只有在Controller上添加@lazy的注解才可以正常启动。是我用错了还是什么原因?还有就是如果不设置DB,是不是就不能加载了?

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

1 participant