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