Polish spring-boot-docs
See gh-25089
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
@@ -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)));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user