mirror of
https://github.com/qiurunze123/miaosha.git
synced 2023-11-19 22:41:03 +08:00
提交dubbo
This commit is contained in:
parent
6482bed88a
commit
a7315c1fca
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user