提交 5a691053 编写于 作者: 武汉红喜's avatar 武汉红喜

update package name

上级 74f1ceae
/**
* Created by shenhongxi on 2017/6/21.
*/
package com.itlong.whatsmars.dubbo.demo;
package com.itlong.whatsmars.dubbo.demo.api;
public interface DemoService {
......
/**
* Created by shenhongxi on 2017/6/21.
*/
package com.itlong.whatsmars.dubbo.demo;
package com.itlong.whatsmars.dubbo.demo.api;
public interface UserService {
......
package com.whatsmars.dubbo.demo.consumer.rpc;
import com.alibaba.dubbo.config.annotation.Reference;
import com.itlong.whatsmars.dubbo.demo.DemoService;
import com.itlong.whatsmars.dubbo.demo.api.DemoService;
import org.springframework.stereotype.Component;
/**
......
......@@ -25,7 +25,7 @@
<!--&lt;!&ndash; 使用zookeeper注册中心暴露服务地址 &ndash;&gt;-->
<!--<dubbo:registry address="zookeeper://127.0.0.1:2181" />-->
<dubbo:reference id="demoService" interface="com.itlong.whatsmars.dubbo.demo.DemoService" />
<dubbo:reference id="userService" interface="com.itlong.whatsmars.dubbo.demo.UserService" />
<dubbo:reference id="demoService" interface="com.itlong.whatsmars.dubbo.demo.api.DemoService" />
<dubbo:reference id="userService" interface="com.itlong.whatsmars.dubbo.demo.api.UserService" />
</beans>
\ No newline at end of file
......@@ -5,7 +5,7 @@ package com.whatsmars.dubbo.demo.provider.resource;
import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.rpc.RpcContext;
import com.itlong.whatsmars.dubbo.demo.DemoService;
import com.itlong.whatsmars.dubbo.demo.api.DemoService;
import java.text.SimpleDateFormat;
import java.util.Date;
......
......@@ -4,7 +4,7 @@
package com.itlong.whatsmars.dubbo.demo.provider;
import com.alibaba.dubbo.rpc.RpcContext;
import com.itlong.whatsmars.dubbo.demo.DemoService;
import com.itlong.whatsmars.dubbo.demo.api.DemoService;
import java.text.SimpleDateFormat;
import java.util.Date;
......
......@@ -4,7 +4,7 @@
package com.itlong.whatsmars.dubbo.demo.provider;
import com.alibaba.dubbo.rpc.RpcContext;
import com.itlong.whatsmars.dubbo.demo.UserService;
import com.itlong.whatsmars.dubbo.demo.api.UserService;
import java.text.SimpleDateFormat;
import java.util.Date;
......
......@@ -30,7 +30,7 @@
<bean id="demoService" class="com.itlong.whatsmars.dubbo.demo.provider.DemoServiceImpl" />
<bean id="userService" class="com.itlong.whatsmars.dubbo.demo.provider.UserServiceImpl" />
<dubbo:service interface="com.itlong.whatsmars.dubbo.demo.DemoService" ref="demoService" />
<dubbo:service interface="com.itlong.whatsmars.dubbo.demo.UserService" ref="userService" />
<dubbo:service interface="com.itlong.whatsmars.dubbo.demo.api.DemoService" ref="demoService" />
<dubbo:service interface="com.itlong.whatsmars.dubbo.demo.api.UserService" ref="userService" />
</beans>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册