李进 2 yıl önce
ebeveyn
işleme
fe63bf539c

+ 17 - 0
device-api-service/pom.xml

@@ -11,11 +11,28 @@
 
     <artifactId>device-api-service</artifactId>
 
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <maven.compiler.source>1.8</maven.compiler.source>
+        <maven.compiler.target>1.8</maven.compiler.target>
+    </properties>
+
     <dependencies>
         <dependency>
             <groupId>com.xy</groupId>
             <artifactId>device-api</artifactId>
             <version>1.0</version>
         </dependency>
+
+        <dependency>
+            <groupId>com.xy</groupId>
+            <artifactId>xy-redis</artifactId>
+            <version>1.0</version>
+        </dependency>
+        <dependency>
+            <groupId>com.xy</groupId>
+            <artifactId>xy-mp</artifactId>
+            <version>1.0</version>
+        </dependency>
     </dependencies>
 </project>

+ 7 - 1
device-api/pom.xml

@@ -11,5 +11,11 @@
 
     <artifactId>device-api</artifactId>
 
-
+    <dependencies>
+        <dependency>
+            <groupId>com.xy</groupId>
+            <artifactId>xy-common</artifactId>
+            <version>1.0</version>
+        </dependency>
+    </dependencies>
 </project>

+ 4 - 2
device-start/src/main/resources/bootstrap.yml

@@ -7,7 +7,9 @@ server:
 
 #微服务相关配置
 cloud:
-  service:
-    name: device
   center:
     url: 119.96.213.127:9007
+    config:
+      shared-configs: redis.yaml,mysql.yaml
+  service:
+    name: device