Move 'Disabling Auto-configuration' above 'Running an Apache Geode/Pivotal GemFire cluster using Spring Boot and your IDE'.
Complete the list of Auto-configuration classes provided by SBDG.
This commit is contained in:
@@ -8,8 +8,8 @@ _Table of Contents_
|
||||
|
||||
1. <<geode-auto-configuration-annotations>>
|
||||
2. <<geode-configuration-metadata>>
|
||||
3. <<geode-cluster-configuration-bootstrapping>>
|
||||
4. <<geode-auto-configuration-disable>>
|
||||
3. <<geode-auto-configuration-disable>>
|
||||
4. <<geode-cluster-configuration-bootstrapping>>
|
||||
5. <<geode-testing>>
|
||||
6. <<geode-examples>>
|
||||
7. <<references>>
|
||||
@@ -21,6 +21,59 @@ include::configuration-annotations.adoc[leveloffset=+1]
|
||||
:!sectnums:
|
||||
include::configuration-properties.adoc[leveloffset=+1]
|
||||
|
||||
[[geode-auto-configuration-disable]]
|
||||
=== Disabling Auto-configuration
|
||||
|
||||
If you would like to disable the auto-configuration of any feature provided by Spring Boot for
|
||||
Apache Geode/Pivotal GemFire, then you can specify the auto-configuration class in the `exclude` attribute
|
||||
of the `@SpringBootApplication` annotation, as follows:
|
||||
|
||||
.Disable Auto-configuration of PDX
|
||||
[source,java]
|
||||
----
|
||||
@SpringBootApplication(exclude = PdxSerializationAutoConfiguration.class)
|
||||
public class MySpringBootApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(MySpringBootApplication.class, args);
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
Of course, you can disable more than 1 auto-configuration class at a time by specifying each class
|
||||
in the `exclude` attribute using array syntax, as follows:
|
||||
|
||||
.Disable Auto-configuration of PDX & SSL
|
||||
[source,java]
|
||||
----
|
||||
@SpringBootApplication(exclude = { PdxSerializationAutoConfiguration.class, SslAutoConfiguration.class })
|
||||
public class MySpringBootApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(MySpringBootApplication.class, args);
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
The current set of auto-configuration classes in Spring Boot for Apache Geode & Pivotal GemFire include:
|
||||
|
||||
* `CacheNameAutoConfiguration`
|
||||
* `CachingProviderAutoConfiguration`
|
||||
* `ClientCacheAutoConfiguration`
|
||||
* `ClientSecurityAutoConfiguration`
|
||||
* `ContinuousQueryAutoConfiguration`
|
||||
* `FunctionExecutionAutoConfiguration`
|
||||
* `GemFirePropertiesAutoConfiguration`
|
||||
* `LoggingAutoConfiguration`
|
||||
* `PdxSerializationAutoConfiguration`
|
||||
* `PeerSecurityAutoConfiguration`
|
||||
* `RegionTemplateAutoConfiguration`
|
||||
* `RepositoriesAutoConfiguration`
|
||||
* `SpringSessionAutoConfiguration`
|
||||
* `SpringSessionAutoPropertiesConfiguration`
|
||||
* `SslAutoConfiguration`
|
||||
|
||||
|
||||
[[geode-cluster-configuration-bootstrapping]]
|
||||
=== Running an Apache Geode/Pivotal GemFire cluster using Spring Boot from your IDE
|
||||
|
||||
@@ -363,54 +416,6 @@ It is pretty simple to build and run a Spring Boot, Apache Geode/Pivotal GemFire
|
||||
that connects to this cluster. Simply include and use Spring Boot for Apache Geode/Pivotal GemFire, ;-).
|
||||
|
||||
|
||||
[[geode-auto-configuration-disable]]
|
||||
=== Disabling Auto-configuration
|
||||
|
||||
If you would like to disable the auto-configuration of any feature provided by Spring Boot for
|
||||
Apache Geode/Pivotal GemFire, then you can specify the auto-configuration class in the `exclude` attribute
|
||||
of the `@SpringBootApplication` annotation, as follows:
|
||||
|
||||
.Disable Auto-configuration of PDX
|
||||
[source,java]
|
||||
----
|
||||
@SpringBootApplication(exclude = PdxSerializationAutoConfiguration.class)
|
||||
public class MySpringBootApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(MySpringBootApplication.class, args);
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
Of course, you can disable more than 1 auto-configuration class at a time by specifying each class
|
||||
in the `exclude` attribute using array syntax, as follows:
|
||||
|
||||
.Disable Auto-configuration of PDX & SSL
|
||||
[source,java]
|
||||
----
|
||||
@SpringBootApplication(exclude = { PdxSerializationAutoConfiguration.class, SslAutoConfiguration.class })
|
||||
public class MySpringBootApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(MySpringBootApplication.class, args);
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
The current set of auto-configuration classes in Spring Boot for Apache Geode/Pivotal GemFire include:
|
||||
|
||||
* `CachingProviderAutoConfiguration`
|
||||
* `ClientCacheAutoConfiguration`
|
||||
* `ClientSecurityAutoConfiguration`
|
||||
* `ContinuousQueryAutoConfiguration`
|
||||
* `FunctionExecutionAutoConfiguration`
|
||||
* `PdxSerializationAutoConfiguration`
|
||||
* `PeerSecurityAutoConfiguration`
|
||||
* `RepositoriesAutoConfiguration`
|
||||
* `SpringSessionAutoConfiguration`
|
||||
* `SslAutoConfiguration`
|
||||
|
||||
|
||||
[[geode-testing]]
|
||||
=== Testing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user