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
release2.1.2版本 // init job handler from method String[] beanDefinitionNames = applicationContext.getBeanDefinitionNames(); for (String beanDefinitionName : beanDefinitionNames) { Object bean = applicationContext.getBean(beanDefinitionName); Method[] methods = bean.getClass().getDeclaredMethods(); ... } 循环获取bean,然后循环获取方法上的注解判断是否为@xxljob 问题是如果有其他bean声明为abstract="true",会抛异常 Caused by: org.springframework.beans.factory.BeanIsAbstractException: Error creating bean with name 'xxxxxxxx': Bean definition is abstract
The text was updated successfully, but these errors were encountered:
你好,这个问题在2.2.0已经修复,可以参考master分支调整下。
Sorry, something went wrong.
No branches or pull requests
release2.1.2版本
// init job handler from method
String[] beanDefinitionNames = applicationContext.getBeanDefinitionNames();
for (String beanDefinitionName : beanDefinitionNames) {
Object bean = applicationContext.getBean(beanDefinitionName);
Method[] methods = bean.getClass().getDeclaredMethods();
...
}
循环获取bean,然后循环获取方法上的注解判断是否为@xxljob
问题是如果有其他bean声明为abstract="true",会抛异常
Caused by: org.springframework.beans.factory.BeanIsAbstractException: Error creating bean with name 'xxxxxxxx': Bean definition is abstract
The text was updated successfully, but these errors were encountered: