xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://code.alibabatech.com/schema/dubbo
http://code.alibabatech.com/schema/dubbo/dubbo.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">
<dubbo:application name="dubbodemo_provider"/>
<!--配置注册中心ip-->
<dubbo:registry address="zookeeper://192.168.188.128:2181"/>
<!--配置协议-->
<dubbo:protocol name="dubbo" port="20882"/>
<!--扫描指定包-->
<dubbo:annotation package="com.itheima.service.impl"/>
</beans> |
|