Use consistent packages for doc samples

Closes gh-29646
This commit is contained in:
Phillip Webb
2022-02-03 15:08:09 -08:00
parent d8d5091038
commit 4919683354
17 changed files with 19 additions and 19 deletions

View File

@@ -482,7 +482,7 @@ You can use this to invoke a write operation that takes `String name` and `int c
[source,java,indent=0,subs="verbatim"]
----
include::{docs-java}/actuator/endpoints/implementingcustom/MyEndpoint.java[tag=write]
include::{docs-java}/actuator/endpoints/implementingcustom/input/../MyEndpoint.java[tag=write]
----
TIP: Because endpoints are technology agnostic, only simple types can be specified in the method signature.

View File

@@ -210,7 +210,7 @@ The following example shows how to handle that situation:
[source,java,indent=0,subs="verbatim"]
----
include::{docs-java}/configurationmetadata/format/group/MyProperties.java[]
include::{docs-java}/configurationmetadata/format/property/MyProperties.java[]
----
NOTE: There is no way to set a `level`.

View File

@@ -255,7 +255,7 @@ To use Spring Data Envers, make sure your repository extends from `RevisionRepos
[source,java,indent=0,subs="verbatim"]
----
include::{docs-java}/data/sql/jpaandspringdata/repositories/CountryRepository.java[]
include::{docs-java}/data/sql/jpaandspringdata/enversrepositories/CountryRepository.java[]
----
NOTE: For more details, check the {spring-data-envers-doc}[Spring Data Envers reference documentation].

View File

@@ -205,7 +205,7 @@ In the following example, we assert that if `MyService` is not present, the auto
[source,java,indent=0,subs="verbatim"]
----
include::{docs-java}/features/developingautoconfiguration/testing/MyServiceAutoConfigurationTests.java[tag=test-classloader]
include::{docs-java}/features/developingautoconfiguration/testing/overridingclasspath/../MyServiceAutoConfigurationTests.java[tag=test-classloader]
----

View File

@@ -1164,7 +1164,7 @@ To do so, ensure that a compliant JSR-303 implementation is on your classpath an
[source,java,indent=0,subs="verbatim"]
----
include::{docs-java}/features/externalconfig/typesafeconfigurationproperties/validate/MyProperties.java[]
include::{docs-java}/features/externalconfig/typesafeconfigurationproperties/validation/MyProperties.java[]
----
TIP: You can also trigger validation by annotating the `@Bean` method that creates the configuration properties with `@Validated`.
@@ -1174,7 +1174,7 @@ The following example builds on the preceding `MyProperties` example:
[source,java,indent=0,subs="verbatim"]
----
include::{docs-java}/features/externalconfig/typesafeconfigurationproperties/validate/nested/MyProperties.java[]
include::{docs-java}/features/externalconfig/typesafeconfigurationproperties/validation/nested/MyProperties.java[]
----
You can also add a custom Spring `Validator` by creating a bean definition called `configurationPropertiesValidator`.

View File

@@ -180,7 +180,7 @@ If you need to _completely_ disable restart support (for example, because it doe
[source,java,indent=0,subs="verbatim"]
----
include::{docs-java}/devtools/restart/disable/MyApplication.java[]
include::{docs-java}/using/devtools/restart/disable/MyApplication.java[]
----

View File

@@ -56,7 +56,7 @@ Here's a sample implementation for our greeting query with a `@Controller` class
[source,java,indent=0,subs="verbatim"]
----
include::{docs-java}/web/graphql/GreetingController.java[]
include::{docs-java}/web/graphql/runtimewiring/GreetingController.java[]
----

View File

@@ -62,7 +62,7 @@ For example, you can customize your security configuration by adding something l
[source,java,indent=0,subs="verbatim"]
----
include::{docs-java}/features/security/springwebflux/MyWebFluxSecurityConfiguration.java[]
include::{docs-java}/web/security/springwebflux/MyWebFluxSecurityConfiguration.java[]
----
@@ -141,7 +141,7 @@ For example, for servlet applications, you can add your own `SecurityFilterChain
[source,java,indent=0,subs="verbatim"]
----
include::{docs-java}/features/security/oauth2/client/MyOAuthClientConfiguration.java[]
include::{docs-java}/web/security/oauth2/client/MyOAuthClientConfiguration.java[]
----
TIP: Spring Boot auto-configures an `InMemoryOAuth2AuthorizedClientService` which is used by Spring Security for the management of client registrations.