diff --git a/docs/modules/ROOT/pages/server.adoc b/docs/modules/ROOT/pages/server.adoc index b717209f90..2b66fee7b9 100644 --- a/docs/modules/ROOT/pages/server.adoc +++ b/docs/modules/ROOT/pages/server.adoc @@ -17,9 +17,7 @@ public class ConfigServer { } ---- -Like all Spring Boot applications, it runs on port 8080 by default, but you can switch it to the more conventional port 8888 in various ways. -The easiest, which also sets a default configuration repository, is by launching it with `spring.config.name=configserver` (there is a `configserver.yml` in the Config Server jar). -Another is to use your own `application.properties`, as shown in the following example: +Like all Spring Boot applications, it runs on port 8080 by default. To use port 8888 and specify your repository, configure them in your own `application.properties`, as shown in the following example: .application.properties [source,properties] diff --git a/docs/src/main/asciidoc/sagan-index.adoc b/docs/src/main/asciidoc/sagan-index.adoc index 4544ee5b9e..bed5d5ce0a 100644 --- a/docs/src/main/asciidoc/sagan-index.adoc +++ b/docs/src/main/asciidoc/sagan-index.adoc @@ -45,5 +45,5 @@ public class Application { The value of `config.name` in the sample (or any other values you bind to in the normal Spring Boot way) can come from local configuration or from the remote Config Server. The Config Server will take precedence by default. To see this look at the `/env` endpoint in the application and see the `configServer` property sources. -To run your own server use the `spring-cloud-config-server` dependency and `@EnableConfigServer`. If you set `spring.config.name=configserver` the app will run on port 8888 and serve data from a sample repository. You need a `spring.cloud.config.server.git.uri` to locate the configuration data for your own needs (by default it is the location of a git repository, and can be a local `file:..` URL). +To run your own server use the `spring-cloud-config-server` dependency and `@EnableConfigServer`. Set `server.port=8888` in your application configuration to use port 8888, and set `spring.cloud.config.server.git.uri` to locate your Git repository (which can be a local `file:..` URL).