提交dubbo

This commit is contained in:
qiurunze123 2019-01-24 23:23:26 +08:00
parent 6482bed88a
commit a7315c1fca
3 changed files with 8 additions and 5 deletions

View File

@ -2,10 +2,10 @@ package com.geekq.admin.service;
import com.geekq.admin.entity.Logininfo;
import com.geekq.common.utils.resultbean.ResultGeekQ;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
public interface ILogininfoService {
/**

View File

@ -23,7 +23,7 @@ import java.util.Map;
/**
* @author 邱润泽
*/
@Service
@Service("logininfoServiceImpl")
public class LogininfoServiceImpl implements ILogininfoService {
private static final Logger logger = LoggerFactory.getLogger(LogininfoServiceImpl.class);

View File

@ -10,12 +10,15 @@
<!-- 注册中心的配置使用zk暴露服务 -->
<dubbo:registry protocol="zookeeper" address="39.107.245.253:2181"></dubbo:registry>
<!-- 定义暴露服务的端口号 -->
<dubbo:protocol name="dubbo" port="20881"></dubbo:protocol>
<!-- 暴露具体的服务接口 -->
<dubbo:service retries="3" interface="com.geekq.admin.service.OrdersService"
ref="ordersService" timeout="6000"></dubbo:service>
<dubbo:service retries="3" interface="com.geekq.admin.service.ILogininfoService"
ref="logininfoServiceImpl" timeout="6000"></dubbo:service>
</beans>