Dubbo服務暴露方式
1.通過注解暴露 第一行寫入服務的package,第二行不需要 使用Dubbo的@Service注解在實現類的上面
<!-- 使用注解方式暴露接口 -->
<dubbo:annotation package="com.dotoyo.dsframe.form" />
<!-- 加入spring注解掃描
<context:component-scan base-package="com.frame.test"/> -->
2.非注解暴露
<!-- 接口的位置 -->
<dubbo:service interface="com.dotoyo.dsframe.form.interf.ITfPreform" ref="demoService" executes="10" />
<!-- 實現bean,客戶端應用的bean就以這個id名稱為主 -->
<bean id="demoService" class="com.dotoyo.dsframe.form.service.TfPreformServiceImpl" />