Polish spring-boot-docs

See gh-25089
This commit is contained in:
Phillip Webb
2021-02-03 16:20:32 -08:00
parent 2a85427324
commit 073f8c4b23
7 changed files with 12 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.util.Assert;
public class ExampleEnvironmentPostProcessor implements EnvironmentPostProcessor {
public class MyEnvironmentPostProcessor implements EnvironmentPostProcessor {
private final YamlPropertySourceLoader loader = new YamlPropertySourceLoader();

View File

@@ -21,7 +21,7 @@ import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
import org.springframework.boot.actuate.endpoint.annotation.WriteOperation;
@Endpoint(id = "custom")
public class CustomEndpointExample {
public class CustomEndpoint {
// tag::read[]
@ReadOperation

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.springbootfeatures.springapplication;
package org.springframework.boot.docs.springbootfeatures.springapplication.exitcode;
// tag::code[]
import org.springframework.boot.ExitCodeGenerator;
@@ -23,7 +23,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
public class ExitCodeExample {
public class MyApplication {
@Bean
public ExitCodeGenerator exitCodeGenerator() {
@@ -31,7 +31,7 @@ public class ExitCodeExample {
}
public static void main(String[] args) {
System.exit(SpringApplication.exit(SpringApplication.run(ExitCodeExample.class, args)));
System.exit(SpringApplication.exit(SpringApplication.run(MyApplication.class, args)));
}
}