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.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.configurationmetadata.format.group;
package org.springframework.boot.docs.configurationmetadata.format.property;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.DeprecatedConfigurationProperty;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.data.sql.jpaandspringdata.repositories;
package org.springframework.boot.docs.data.sql.jpaandspringdata.enversrepositories;
import org.springframework.boot.docs.data.sql.jpaandspringdata.entityclasses.Country;
import org.springframework.data.domain.Page;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.externalconfig.typesafeconfigurationproperties.validate;
package org.springframework.boot.docs.features.externalconfig.typesafeconfigurationproperties.validation;
import java.net.InetAddress;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.externalconfig.typesafeconfigurationproperties.validate.nested;
package org.springframework.boot.docs.features.externalconfig.typesafeconfigurationproperties.validation.nested;
import java.net.InetAddress;

View File

@ -19,7 +19,7 @@ package org.springframework.boot.docs.features.testing.springbootapplications.sp
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.docs.web.graphql.GreetingController;
import org.springframework.boot.docs.web.graphql.runtimewiring.GreetingController;
import org.springframework.boot.test.autoconfigure.graphql.GraphQlTest;
import org.springframework.graphql.test.tester.GraphQlTester;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.devtools.restart.disable;
package org.springframework.boot.docs.using.devtools.restart.disable;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.web.graphql;
package org.springframework.boot.docs.web.graphql.runtimewiring;
import org.springframework.graphql.data.method.annotation.Argument;
import org.springframework.graphql.data.method.annotation.QueryMapping;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.security.oauth2.client;
package org.springframework.boot.docs.web.security.oauth2.client;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.security.springwebflux;
package org.springframework.boot.docs.web.security.springwebflux;
import org.springframework.boot.autoconfigure.security.reactive.PathRequest;
import org.springframework.context.annotation.Bean;