浏览代码

fix 调整接口

daiyihua 1 年之前
父节点
当前提交
f360ee8a41

+ 4 - 1
ywt-platform-outpatient-rpc/pom.xml

@@ -26,7 +26,10 @@
             <groupId>org.springframework.kafka</groupId>
             <artifactId>spring-kafka</artifactId>
         </dependency>
-
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
     </dependencies>
 
     <profiles>

+ 6 - 1
ywt-platform-outpatient-rpc/src/main/java/com/ywt/OutpatientRpcServiceApplication.java

@@ -2,14 +2,19 @@ package com.ywt;
 
 import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
 import org.springframework.boot.SpringApplication;
+import org.springframework.boot.WebApplicationType;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.builder.SpringApplicationBuilder;
 
 @SpringBootApplication
 @EnableDubbo
 public class OutpatientRpcServiceApplication {
 
     public static void main(String[] args) {
-        SpringApplication.run(OutpatientRpcServiceApplication.class, args);
+//        SpringApplication.run(OutpatientRpcServiceApplication.class, args);
+        new SpringApplicationBuilder(OutpatientRpcServiceApplication.class)
+                .web(WebApplicationType.NONE) // .REACTIVE, .SERVLET
+                .run(args);
     }
 
 }

+ 1 - 1
ywt-platform-outpatient-sdk/src/main/java/com/ywt/outpatient/service/rpc/handler/RestCallerApiProvider.java → ywt-platform-outpatient-rpc/src/main/java/com/ywt/outpatient/rpc/handler/RestCallerApiProvider.java

@@ -1,4 +1,4 @@
-package com.ywt.outpatient.service.rpc.handler;
+package com.ywt.outpatient.rpc.handler;
 
 import com.ywt.biz.common.util.Checker;
 import com.ywt.biz.common.util.HttpUtil;

+ 1 - 1
ywt-platform-outpatient-sdk/src/main/java/com/ywt/outpatient/service/rpc/handler/RestTemplateConfig.java → ywt-platform-outpatient-rpc/src/main/java/com/ywt/outpatient/rpc/handler/RestTemplateConfig.java

@@ -1,4 +1,4 @@
-package com.ywt.outpatient.service.rpc.handler;
+package com.ywt.outpatient.rpc.handler;
 
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;

+ 1 - 1
ywt-platform-outpatient-sdk/src/main/java/com/ywt/outpatient/service/rpc/handler/RestTemplateHandler.java → ywt-platform-outpatient-rpc/src/main/java/com/ywt/outpatient/rpc/handler/RestTemplateHandler.java

@@ -1,4 +1,4 @@
-package com.ywt.outpatient.service.rpc.handler;
+package com.ywt.outpatient.rpc.handler;
 
 import lombok.extern.slf4j.Slf4j;
 import org.apache.http.HttpStatus;

+ 1 - 1
ywt-platform-outpatient-rpc/src/main/java/com/ywt/outpatient/rpc/provider/TaiheRegisterProvider.java

@@ -36,12 +36,12 @@ import com.ywt.outpatient.domain.entity.center.*;
 import com.ywt.outpatient.domain.entity.center.MedicalCard;
 import com.ywt.outpatient.domain.models.HisMedCardConfig;
 import com.ywt.outpatient.domain.models.enums.*;
+import com.ywt.outpatient.rpc.handler.RestCallerApiProvider;
 import com.ywt.outpatient.service.rpc.Constants;
 import com.ywt.outpatient.service.rpc.IdGenerator;
 import com.ywt.outpatient.service.rpc.VerifyCreateRegisteredResult;
 import com.ywt.outpatient.service.rpc.VerifyRegisterWithoutMedicalCardResult;
 import com.ywt.outpatient.service.rpc.common.*;
-import com.ywt.outpatient.service.rpc.handler.RestCallerApiProvider;
 import org.apache.dubbo.config.annotation.DubboReference;
 import org.apache.dubbo.config.annotation.DubboService;
 import org.slf4j.Logger;

+ 0 - 4
ywt-platform-outpatient-sdk/pom.xml

@@ -84,9 +84,5 @@
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-csv</artifactId>
         </dependency>
-        <dependency>
-            <groupId>org.springframework.boot</groupId>
-            <artifactId>spring-boot-starter-web</artifactId>
-        </dependency>
     </dependencies>
 </project>