I am trying to connect to Couchbase server 6.6 using Spring Boot application and I want to use username and password to connect to Couchbase server. Which Spring boot version is compatible for this ? And what are configuration I have to do?
CodePudding user response:
Please just read the documentation. For the compatability it says this:
Please note that implicitly the minimum Couchbase Server version has been bumped up to 5.5 and later, and we recommend running at least 6.0.x.
And the configuration can be done like this:
@Configuration
public class Config extends AbstractCouchbaseConfiguration {
@Override
public String getConnectionString() {
return "couchbase://127.0.0.1";
}
@Override
public String getUserName() {
return "Administrator";
}
@Override
public String getPassword() {
return "password";
}
@Override
public String getBucketName() {
return "travel-sample";
}
}