0
私はspring-data-couchbase 2.1.2
を使用しています。メソッドを1つのリポジトリに追加します。実装クラスで :spring-dataリポジトリのメソッドを再定義する
public class MyRepositoryImpl implements MyRepositoryCustom {
@Autowired
RepositoryOperationsMapping templateProvider;
....
}
Iを添加RepositoryOperationsMapping
が、オブジェクトが注入されていない、私は下にエラー:私はXMLファイルに追加する方法、spring.xml
ファイルを使用するSpring構成について
[org.springframework.data.couchbase.repository.config.RepositoryOperationsMapping]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException
RepositoryOperationsMapping
のリファレンス?
ありがとうございました。さようなら。
はあなたが使用している春データのCouchbaseのバージョンを追加してくださいもらえますか?スニペットの下に、問題を解決しましたか –
バージョンは2.1.2です –