bootstrap.yaml
server:
port:8403
spring:
application:
name: provider
cloud:
nacos:
discovery:
server-addr: localhost:8848
config:
server-addr: localhost:8848
file-extension: yaml
group: devGroup
namespace: c14f418f-bede-4627-a15b-799595757619
application.yaml
spring:
profiles:
active: dev
xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0
<groupId>org.springframework.boot
<artifactId>spring-boot-starter-parent
<version>2.2.1.RELEASE
<relativePath/>
<groupId>com.example
<artifactId>nacosDemo
<version>0.0.1-SNAPSHOT
<name>nacosDemo
<description>nacosDemo
<groupId>org.springframework.boot
<artifactId>spring-boot-starter
<groupId>org.springframework.boot
<artifactId>spring-boot-starter-web
<groupId>org.springframework.boot
<artifactId>spring-boot-starter-test
<scope>test
<groupId>org.junit.vintage
<artifactId>junit-vintage-engine
<groupId>com.alibaba.cloud
<artifactId>spring-cloud-starter-alibaba-nacos-discovery
<version>2.2.1.RELEASE
<groupId>com.alibaba.cloud
<artifactId>spring-cloud-starter-alibaba-nacos-config
<version>2.2.1.RELEASE
<groupId>org.springframework.boot
<artifactId>spring-boot-maven-plugin
