Browse Source

删除 dubbo 服务,使用RestSmsServiceImpl

liuam 7 years ago
parent
commit
34a0edb217

+ 0 - 25
pom.xml

@@ -394,31 +394,6 @@
 			<artifactId>dfs-api</artifactId>
 		</dependency>
 
-		<!-- dubbo -->
-		<dependency>
-			<groupId>com.alibaba</groupId>
-			<artifactId>dubbo</artifactId>
-			<exclusions>
-				<exclusion>
-					<groupId>javax.servlet</groupId>
-					<artifactId>javax.servlet-api</artifactId>
-				</exclusion>
-				<exclusion>
-					<groupId>org.apache.httpcomponents</groupId>
-					<artifactId>httpcore</artifactId>
-				</exclusion>
-			</exclusions>
-		</dependency>
-
-		<dependency>
-			<groupId>org.apache.zookeeper</groupId>
-			<artifactId>zookeeper</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>com.github.sgroschupf</groupId>
-			<artifactId>zkclient</artifactId>
-		</dependency>
-
 		<!-- search -->
 		<dependency>
 			<groupId>com.uas.search</groupId>

+ 2 - 1
src/main/java/com/uas/platform/b2c/core/utils/MessageUtils.java

@@ -1,6 +1,7 @@
 package com.uas.platform.b2c.core.utils;
 
 import com.uas.message.sms.service.SmsService;
+import com.uas.platform.b2c.common.base.service.impl.RestSmsServiceImpl;
 import org.apache.commons.lang3.StringUtils;
 
 /**
@@ -13,7 +14,7 @@ public class MessageUtils {
     private static SmsService smsService;
 
     static {
-        smsService = (SmsService) ContextUtils.getBean("smsService");
+        smsService = ContextUtils.getBean(RestSmsServiceImpl.class);
     }
 
     /**

+ 0 - 1
src/main/resources/spring/context.xml

@@ -206,5 +206,4 @@
 	<import resource="classpath:spring/jpa.xml"/>
 	<import resource="classpath:spring/redis.xml"/>
 	<import resource="classpath:spring/task.xml"/>
-	<import resource="classpath:spring/dubbo.xml"/>
 </beans>

+ 0 - 19
src/main/resources/spring/dubbo.xml

@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
-       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
-	http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
-
-    <dubbo:application name="b2c_consumer" />
-
-    <dubbo:registry address="${zk.url}" check="false" />
-
-    <!-- 分布式文件服务 -->
-    <!--<dubbo:reference id="fileClient" interface="com.uas.dfs.service.FileClient" timeout="100000"/>-->
-
-    <!-- 邮件服务 -->
-    <!--<dubbo:reference id="mailService" interface="com.uas.message.mail.service.MailService" timeout="30000" />-->
-
-    <!-- 短信服务 -->
-    <dubbo:reference id="smsService" interface="com.uas.message.sms.service.SmsService" timeout="30000" />
-</beans>