diff --git a/01-placeorder/src/main/resources/application.yml b/01-placeorder/src/main/resources/application.yml
index 4b5ff9d..06a4d0d 100644
--- a/01-placeorder/src/main/resources/application.yml
+++ b/01-placeorder/src/main/resources/application.yml
@@ -1,10 +1,10 @@
server:
- port: 80
+ port: 80
-spring:
- application:
- name: placeorder
- cloud:
- nacos:
- discovery:
- server-addr: 114.116.226.76:8848
\ No newline at end of file
+ spring:
+ application:
+ name: placeorder
+ cloud:
+ nacos:
+ discovery:
+ server-addr: 114.116.226.76:8848
\ No newline at end of file
diff --git a/02-itemstock/pom.xml b/02-itemstock/pom.xml
index 7735daa..886f146 100644
--- a/02-itemstock/pom.xml
+++ b/02-itemstock/pom.xml
@@ -12,5 +12,15 @@
02-itemstock
商品的库存服务,专门对库存做操作
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-nacos-discovery
+
+
\ No newline at end of file
diff --git a/02-itemstock/src/main/java/com/mashibing/ItemStockStarterApp.java b/02-itemstock/src/main/java/com/mashibing/ItemStockStarterApp.java
new file mode 100644
index 0000000..337a0c8
--- /dev/null
+++ b/02-itemstock/src/main/java/com/mashibing/ItemStockStarterApp.java
@@ -0,0 +1,18 @@
+package com.mashibing;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+
+/**
+ * @author zjw
+ * @description
+ */
+@SpringBootApplication
+@EnableDiscoveryClient
+public class ItemStockStarterApp {
+
+ public static void main(String[] args) {
+ SpringApplication.run(ItemStockStarterApp.class,args);
+ }
+}
diff --git a/02-itemstock/src/main/resources/application.yml b/02-itemstock/src/main/resources/application.yml
new file mode 100644
index 0000000..53166ca
--- /dev/null
+++ b/02-itemstock/src/main/resources/application.yml
@@ -0,0 +1,10 @@
+server:
+ port: 8080
+
+spring:
+ application:
+ name: itemstock
+ cloud:
+ nacos:
+ discovery:
+ server-addr: 114.116.226.76:8848
\ No newline at end of file