parent
d8d5091038
commit
4919683354
|
@ -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.
|
||||
|
|
|
@ -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;
|
|
@ -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;
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
|
@ -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;
|
|
@ -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;
|
|
@ -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;
|
Loading…
Reference in New Issue