-
Notifications
You must be signed in to change notification settings - Fork 61
发布与订阅 服务版本(Version)
ShenJW edited this page Apr 20, 2016
·
9 revisions
- 作用
允许客户端订阅接口签名与本地存根(Interface)一致, 但版本号(Version)不同的服务
@Service(version = "0.0.1-version") public interface TestApp { ... }
- @See[服务端]版本为
0.0.2-version
@Autowired(version = { "0.0.2-version" }) public class TestApp2Impl implements TestApp { ... }
- @See[客户端]指定服务版本
<bean id="test2" class="com.kepler.service.imported.ImportedServiceFactory" parent="kepler.service.imported.abstract"> <constructor-arg index="0" value="com.kepler.TestApp" /> <!-- Profile --> <constructor-arg index="1" value="" /> <constructor-arg index="2" value="0.0.2-version" /> <!-- Catalog --> <constructor-arg index="3" value="" /> </bean>
- @See[服务端]版本为