@ -38,7 +38,7 @@ The following listing shows an example of such a bean:
[source,java,indent=0,subs="verbatim"]
[source,java,indent=0,subs="verbatim"]
----
----
include::{docs-java}/features /nosql/redis/connecting/MyBean.java[]
include::{docs-java}/data /nosql/redis/connecting/MyBean.java[]
----
----
TIP: You can also register an arbitrary number of beans that implement `LettuceClientConfigurationBuilderCustomizer` for more advanced customizations.
TIP: You can also register an arbitrary number of beans that implement `LettuceClientConfigurationBuilderCustomizer` for more advanced customizations.
@ -66,7 +66,7 @@ The following example shows how to connect to a MongoDB database:
[source,java,indent=0,subs="verbatim"]
[source,java,indent=0,subs="verbatim"]
----
----
include::{docs-java}/features /nosql/mongodb/connecting/MyBean.java[]
include::{docs-java}/data /nosql/mongodb/connecting/MyBean.java[]
----
----
If you have defined your own `MongoClient`, it will be used to auto-configure a suitable `MongoDatabaseFactory`.
If you have defined your own `MongoClient`, it will be used to auto-configure a suitable `MongoDatabaseFactory`.
@ -120,7 +120,7 @@ As with `JdbcTemplate`, Spring Boot auto-configures a bean for you to inject the
[source,java,indent=0,subs="verbatim"]
[source,java,indent=0,subs="verbatim"]
----
----
include::{docs-java}/features /nosql/mongodb/template/MyBean.java[]
include::{docs-java}/data /nosql/mongodb/template/MyBean.java[]
----
----
See the {spring-data-mongodb-api}/core/MongoOperations.html[`MongoOperations` Javadoc] for complete details.
See the {spring-data-mongodb-api}/core/MongoOperations.html[`MongoOperations` Javadoc] for complete details.
@ -137,7 +137,7 @@ You could take the JPA example from earlier and, assuming that `City` is now a M
[source,java,indent=0,subs="verbatim"]
[source,java,indent=0,subs="verbatim"]
----
----
include::{docs-java}/features /nosql/mongodb/repositories/CityRepository.java[]
include::{docs-java}/data /nosql/mongodb/repositories/CityRepository.java[]
----
----
TIP: You can customize document scanning locations by using the `@EntityScan` annotation.
TIP: You can customize document scanning locations by using the `@EntityScan` annotation.
@ -182,7 +182,7 @@ The following example shows how to inject a Neo4j `Driver` that gives you access
[source,java,indent=0,subs="verbatim"]
[source,java,indent=0,subs="verbatim"]
----
----
include::{docs-java}/features /nosql/neo4j/connecting/MyBean.java[]
include::{docs-java}/data /nosql/neo4j/connecting/MyBean.java[]
----
----
You can configure various aspects of the driver using `spring.neo4j.*` properties.
You can configure various aspects of the driver using `spring.neo4j.*` properties.
@ -214,7 +214,7 @@ You could take the JPA example from earlier and define `City` as Spring Data Neo
[source,java,indent=0,subs="verbatim"]
[source,java,indent=0,subs="verbatim"]
----
----
include::{docs-java}/features /nosql/neo4j/repositories/CityRepository.java[]
include::{docs-java}/data /nosql/neo4j/repositories/CityRepository.java[]
----
----
The `spring-boot-starter-data-neo4j` "`Starter`" enables the repository support as well as transaction management.
The `spring-boot-starter-data-neo4j` "`Starter`" enables the repository support as well as transaction management.
@ -230,7 +230,7 @@ To enable transaction management, the following bean must be defined in your con
[source,java,indent=0,subs="verbatim"]
[source,java,indent=0,subs="verbatim"]
----
----
include::{docs-java}/features /nosql/neo4j/repositories/MyNeo4jConfiguration.java[]
include::{docs-java}/data /nosql/neo4j/repositories/MyNeo4jConfiguration.java[]
----
----
====
====
@ -251,7 +251,7 @@ The following example shows how to inject a Solr bean:
[source,java,indent=0,subs="verbatim"]
[source,java,indent=0,subs="verbatim"]
----
----
include::{docs-java}/features /nosql/solr/connecting/MyBean.java[]
include::{docs-java}/data /nosql/solr/connecting/MyBean.java[]
----
----
If you add your own `@Bean` of type `SolrClient`, it replaces the default.
If you add your own `@Bean` of type `SolrClient`, it replaces the default.
@ -343,7 +343,7 @@ as shown in the following example:
[source,java,indent=0,subs="verbatim"]
[source,java,indent=0,subs="verbatim"]
----
----
include::{docs-java}/features /nosql/elasticsearch/connectingusingspringdata/MyBean.java[]
include::{docs-java}/data /nosql/elasticsearch/connectingusingspringdata/MyBean.java[]
----
----
In the presence of `spring-data-elasticsearch` and the required dependencies for using a `WebClient` (typically `spring-boot-starter-webflux`), Spring Boot can also auto-configure a <<features#data.nosql.elasticsearch.connecting-using-rest.webclient,ReactiveElasticsearchClient>> and a `ReactiveElasticsearchTemplate` as beans.
In the presence of `spring-data-elasticsearch` and the required dependencies for using a `WebClient` (typically `spring-boot-starter-webflux`), Spring Boot can also auto-configure a <<features#data.nosql.elasticsearch.connecting-using-rest.webclient,ReactiveElasticsearchClient>> and a `ReactiveElasticsearchTemplate` as beans.
@ -436,7 +436,7 @@ The following code listing shows how to inject a Cassandra bean:
[source,java,indent=0,subs="verbatim"]
[source,java,indent=0,subs="verbatim"]
----
----
include::{docs-java}/features /nosql/cassandra/connecting/MyBean.java[]
include::{docs-java}/data /nosql/cassandra/connecting/MyBean.java[]
----
----
If you add your own `@Bean` of type `CassandraTemplate`, it replaces the default.
If you add your own `@Bean` of type `CassandraTemplate`, it replaces the default.
@ -515,7 +515,7 @@ The following examples shows how to inject a `CouchbaseTemplate` bean:
[source,java,indent=0,subs="verbatim"]
[source,java,indent=0,subs="verbatim"]
----
----
include::{docs-java}/features /nosql/couchbase/repositories/MyBean.java[]
include::{docs-java}/data /nosql/couchbase/repositories/MyBean.java[]
----
----
There are a few beans that you can define in your own configuration to override those provided by the auto-configuration:
There are a few beans that you can define in your own configuration to override those provided by the auto-configuration:
@ -529,7 +529,7 @@ For instance, you can customize the converters to use, as follows:
[source,java,indent=0,subs="verbatim"]
[source,java,indent=0,subs="verbatim"]
----
----
include::{docs-java}/features /nosql/couchbase/repositories/MyCouchbaseConfiguration.java[]
include::{docs-java}/data /nosql/couchbase/repositories/MyCouchbaseConfiguration.java[]
----
----
@ -576,7 +576,7 @@ You can also inject an auto-configured `LdapTemplate` instance as you would with
[source,java,indent=0,subs="verbatim"]
[source,java,indent=0,subs="verbatim"]
----
----
include::{docs-java}/features /nosql/ldap/repositories/MyBean.java[]
include::{docs-java}/data /nosql/ldap/repositories/MyBean.java[]
----
----