From bec554f554ceaba62f8f164668f5c481a1da5c93 Mon Sep 17 00:00:00 2001 From: fangjian0423 Date: Tue, 8 Oct 2019 15:42:09 +0800 Subject: [PATCH] update docs --- .../src/main/asciidoc/nacos-discovery.adoc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spring-cloud-alibaba-docs/src/main/asciidoc/nacos-discovery.adoc b/spring-cloud-alibaba-docs/src/main/asciidoc/nacos-discovery.adoc index 46b5d019..adc4952c 100644 --- a/spring-cloud-alibaba-docs/src/main/asciidoc/nacos-discovery.adoc +++ b/spring-cloud-alibaba-docs/src/main/asciidoc/nacos-discovery.adoc @@ -42,9 +42,11 @@ For more Nacos Server versions, you can download the latest version from https:/ The following sample illustrates how to register a service to Nacos. * Configuration of pom.xml The following is a complete example of pom.xml: + +.pom.xml [source, xml] ---- - + 4.0.0 @@ -115,7 +117,8 @@ The following sample illustrates how to register a service to Nacos. ---- * Configuration of application.properties Some of the basic configurations of Nacos must be included in application.properties(or application.yaml), as shown below: -application.properties + +.application.properties [source,properties] ---- server.port=8081 @@ -128,6 +131,7 @@ management.endpoints.web.exposure.include=* NOTE: If you do not want to use Nacos for service registration and discovery, you can set `spring.cloud.nacos.discovery` to `false`. * The following is a sample for starting Provider: + [source,java,indent=0] ---- @SpringBootApplication