Company
Date Published
Author
Laurent Doguin, Developer Advocate, Couchbase
Word count
769
Language
English
Hacker News points
None

Summary

Spring Data Couchbase 2 has been released and is now accessible through Spring Initializr, allowing developers to quickly set up a Spring/Couchbase project by selecting dependencies and generating a project archive. The tool is compatible with Spring Boot 1.4.0-SNAPSHOT and includes an auto-configuration feature that supports properties for Couchbase access, such as bucket name and password, and offers various consistency levels like read-your-own-writes and strongly-consistent. Developers can define these properties in the application.properties file or through a @Configuration Bean. The auto-configuration also provides automatic index creation, although it's recommended to disable this in production. Key annotations for index creation include @N1qlPrimaryIndexed and @ViewIndexed, while the framework offers various Beans like CouchbaseTemplate for low-level API access and ValidatingCouchbaseEventListener for entity validation. For more comprehensive details, users are encouraged to consult the official documentation or follow ongoing blog updates.