diff --git a/.idea/encodings.xml b/.idea/encodings.xml
index 376fc17..ce63cf5 100644
--- a/.idea/encodings.xml
+++ b/.idea/encodings.xml
@@ -13,6 +13,7 @@
+
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 18d7e64..9cad354 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,21 +4,8 @@
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
@@ -184,7 +171,7 @@
-
+
@@ -298,7 +285,15 @@
1703581061973
-
+
+
+ 1703664991364
+
+
+
+ 1703664991364
+
+
@@ -327,7 +322,8 @@
-
+
+
diff --git a/spzx-service/pom.xml b/spzx-service/pom.xml
index 786c818..6bb6bfe 100644
--- a/spzx-service/pom.xml
+++ b/spzx-service/pom.xml
@@ -20,6 +20,7 @@
service-order
service-product
service-user
+ service-cart
diff --git a/spzx-service/service-cart/pom.xml b/spzx-service/service-cart/pom.xml
new file mode 100644
index 0000000..a628ca0
--- /dev/null
+++ b/spzx-service/service-cart/pom.xml
@@ -0,0 +1,29 @@
+
+ 4.0.0
+
+ cn.bunny
+ spzx-service
+ 1.0-SNAPSHOT
+
+
+ cn.bunny.web
+ service-cart
+ jar
+
+ service-cart
+ http://maven.apache.org
+
+
+ UTF-8
+
+
+
+
+ junit
+ junit
+ 3.8.1
+ test
+
+
+
diff --git a/spzx-service/service-cart/src/main/java/cn/bunny/web/CartApplication.java b/spzx-service/service-cart/src/main/java/cn/bunny/web/CartApplication.java
new file mode 100644
index 0000000..31db64e
--- /dev/null
+++ b/spzx-service/service-cart/src/main/java/cn/bunny/web/CartApplication.java
@@ -0,0 +1,13 @@
+package cn.bunny.web;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
+
+// com.atguigu.spzx.cart;
+@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) // 排除数据库的自动化配置,Cart微服务不需要访问数据库
+public class CartApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(CartApplication.class, args);
+ }
+}
diff --git a/spzx-service/service-cart/src/main/resources/application-dev.yml b/spzx-service/service-cart/src/main/resources/application-dev.yml
new file mode 100644
index 0000000..dfd538b
--- /dev/null
+++ b/spzx-service/service-cart/src/main/resources/application-dev.yml
@@ -0,0 +1,14 @@
+server:
+ port: 8513
+
+spring:
+ application:
+ name: service-cart
+ cloud:
+ nacos:
+ discovery:
+ server-addr: 192.168.2.82:8848
+ data:
+ redis:
+ host: 192.168.2.82
+ port: 6379
\ No newline at end of file
diff --git a/spzx-service/service-cart/src/main/resources/application.yml b/spzx-service/service-cart/src/main/resources/application.yml
new file mode 100644
index 0000000..caf4dfc
--- /dev/null
+++ b/spzx-service/service-cart/src/main/resources/application.yml
@@ -0,0 +1,3 @@
+spring:
+ profiles:
+ active: dev
\ No newline at end of file
diff --git a/spzx-service/service-cart/src/main/resources/logback-spring.xml b/spzx-service/service-cart/src/main/resources/logback-spring.xml
new file mode 100644
index 0000000..09148d5
--- /dev/null
+++ b/spzx-service/service-cart/src/main/resources/logback-spring.xml
@@ -0,0 +1,56 @@
+
+
+
+ logback
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INFO
+
+
+ ${CONSOLE_LOG_PATTERN}
+ ${ENCODING}
+
+
+
+
+
+ ${log.path}//log.log
+ true
+
+ %date{yyyy-MM-dd HH:mm:ss} %msg%n
+ ${ENCODING}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spzx-service/service-cart/src/test/java/cn/bunny/web/AppTest.java b/spzx-service/service-cart/src/test/java/cn/bunny/web/AppTest.java
new file mode 100644
index 0000000..6b7e99e
--- /dev/null
+++ b/spzx-service/service-cart/src/test/java/cn/bunny/web/AppTest.java
@@ -0,0 +1,38 @@
+package cn.bunny.web;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}