org/optaplanner/spring/boot/autoconfigure/OptaPlannerAutoConfiguration.class]: Bean instantiation via factoryorg/optaplanner/spring/boot/autoconfigure/OptaPlannerAutoConfiguration.class]: Bean instantiation via factory(AbstractBeanF
13:48:44.710 ERROR] o.s.b.SpringApplication:858 - Application run failed at org.springframework.beans.factory.support.AbstractBeanFactory.lambda(DefaultSingletonBeanRegistry.jav
ERROR org.springframework.boot.SpringApplication - Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyExceptiondependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.BeanCreationExceptionFailed to build
我实现它的方式是声明一个实例化的模块级工厂函数: # in mymodule.py return cls(*args, **kwargs) 后来,当我需要一个MyModule的类的实例,我做的factory(cls, arg1, arg2)不是cls(arg1, arg2)。something with the instance here if desired
return instance 以上回调的安装如下所示: myFactory.chain, mymodule.<e
43) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessorLifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:366)
at org.springframework.beans.factory.annota