0
私はマイクロサービスアーキテクチャーを使用している初心者で、camunda(読み取り専用ビジネスプロセスツール(ライブラリ))を使用する別のモジュールからBeanにアクセスします。UnsatisfiedDependencyException Bean名でのエラーフィールドで表される満足しない依存関係
@Configuration
@ComponentScan(basePackages = {"com.example"}, excludeFilters={
@ComponentScan.Filter(type=FilterType.ASSIGNABLE_TYPE, value=SpringProcessEngineServicesConfiguration.class)})
現在のモジュールが与えて起動しません:エラー不満の依存関係は、私は以下のコードでそれを排除しようとしたので、まだ私は私の現在のモジュールでcamundaから任意の豆を必要としないcamundaインターフェースから来ています以下のスタックトレース:それは解決するのに長い時間がかかったものの、
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.camunda.bpm.engine.spring.SpringProcessEngineServicesConfiguration': Unsatisfied dependency expressed through field 'processEngine': Error creating bean with name 'processEngineFactoryBean': FactoryBean threw exception on object creation; nested exception is org.camunda.bpm.engine.exception.NotValidException: Filter name must not be null or empty: name is null; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngineFactoryBean': FactoryBean threw exception on object creation; nested exception is org.camunda.bpm.engine.exception.NotValidException: Filter name must not be null or empty: name is null
正確に言うには少しの詳細があります。問題は、 'processEngineFactoryBean'というbeanを作ることです。このBeanのコードとSpringの設定関連コードは役に立ちます –
processEngineFactoryBeanはcamundaに属しています。私は、現在のモジュールでこのcamundaライブラリを必要としません。これは、依存関係として追加したモジュールによって使用されます。これで私の現在のモジュールが起動しなくなる – Etch
私はこのprocessEngineFactoryBeanで他のモジュールにアクセスできます。私はコードを使用します@Configuration @ComponentScan(basePackages = {"com.example"} – Etch