Use consistent packages for doc samples
Closes gh-29646
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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`.
|
||||
|
||||
@@ -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].
|
||||
|
||||
@@ -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]
|
||||
----
|
||||
|
||||
|
||||
|
||||
@@ -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`.
|
||||
|
||||
@@ -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[]
|
||||
----
|
||||
|
||||
|
||||
|
||||
@@ -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[]
|
||||
----
|
||||
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user