Skip to content

Instantly share code, notes, and snippets.

@shivangi1015
Created May 15, 2019 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shivangi1015/672df2772ac122b31d0be55c2fb3240c to your computer and use it in GitHub Desktop.
Save shivangi1015/672df2772ac122b31d0be55c2fb3240c to your computer and use it in GitHub Desktop.
package com.knoldus.blogs;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.couchbase.config.AbstractCouchbaseConfiguration;
import java.util.Collections;
import java.util.List;
@Configuration
public class Config extends AbstractCouchbaseConfiguration {
@Override
protected List<String> getBootstrapHosts() {
return Collections.singletonList("127.0.0.1");
}
@Override
protected String getBucketName() {
return "blog";
}
@Override
protected String getBucketPassword() {
return "knoldus";
}
@Override
protected String getUsername() {
return "Administrator";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment