Aerospike
と協力してSpring Data
を使用したいと思います。私は目的のために便利な図書館を見つけたhere。春データ航空宇宙
しかし、それを依存関係に追加しても、サンプルのこのコードは依然として依存関係を見つけることができませんでした。
@Configuration
@EnableAerospikeRepositories(basePackageClasses =
ContactRepository.class)
class ApplicationConfig extends AbstractAerospikeConfiguration {
public @Bean(destroyMethod = "close") AerospikeClient aerospikeClient() {
ClientPolicy policy = new ClientPolicy();
policy.failIfNotConnected = true;
return new AerospikeClient(policy, "localhost", 3000);
}
public @Bean AerospikeTemplate aerospikeTemplate() {
return new AerospikeTemplate(aerospikeClient(), "bar");
}
}
さらに情報がGoogleで見つかる可能性があります。プロジェクトhereの例を見つけることができ、また
<repositories>
<repository>
<id>spring-milestone</id>
<url>https://repo.spring.io/libs-release</url>
</repository>
</repositories>
:私はすでにのように、別のリポジトリを追加しようとしました。そして、何を推測する?それも構築されません。
更新されたリポジトリMaven
がインストールされましたが、まだ結果はありません。たぶん私はいくつかのコア依存関係が欠けているでしょうか?
EDIT:
私は、他の依存関係のように追加しました。まず、それはまったく見つからなかったが、Maven
を更新した後はOKと見なされた。しかし、私はまだ必要な情報源をインポートできませんでした。
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-aerospike</artifactId>
<version>1.5.0.RELEASE</version>
</dependency>
「spring-data-aerospike」依存関係をどのように追加しましたか?関連するpom.xmlスニペットを表示できますか? –
@romanpuchkovskiy、私は質問を更新しました – quento