瀏覽代碼

还原feign client

lixing 4 年之前
父節點
當前提交
f4c155a57d
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      dmp-alarm/pom.xml
  2. 2 0
      dmp-alarm/src/main/java/com/persagy/dmp/alarm/client/PhysicalWorldClient.java

+ 1 - 1
dmp-alarm/pom.xml

@@ -3,7 +3,7 @@
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <parent>
-        <artifactId>persagy-dmp</artifactId>
+        <artifactId>dmp</artifactId>
         <groupId>com.persagy</groupId>
         <version>4.0.0</version>
     </parent>

+ 2 - 0
dmp-alarm/src/main/java/com/persagy/dmp/alarm/client/PhysicalWorldClient.java

@@ -7,6 +7,8 @@ import org.springframework.stereotype.Service;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.cloud.openfeign.FeignClient;
+
 
 /**
  * @description: 对接物理世界接口