This article has been published by the author Wang Shen authorized netease Cloud community.

Welcome to visit netease Cloud Community to learn more about Netease’s technical product operation experience.

disconf-spring-boot-starter

Usage:

Introducing Maven dependencies:

com.netease.haitao.sc
disconf-spring-boot-starter
1.0.1

In application. Properties, define the following field #disconf as configured Zk address disconf. ZkHost = 10.122.137.135:2181,10.164. 166.201:2181,10.164. 166.200:2181,10.164. 166.199:2181 # disconf disconf environment. Env = GroupName =sc_jxc_front_config can be directly injected into the ConfigService Bean using @resource. @Resourceprivate ConfigService configService; Implementation snippet

kschedule-spring-boot-starter

Introducing Maven dependencies:

com.netease.haitao.sc
kschedule-spring-boot-starter
1.0.0

In application.properties, define the following field # kSchedule ZK as configured Address kschedule. ZkConnectUrl = 10.164.166.75:2181,10.122. 137.110:2181,10.122. 137.109:2181 # kschedule Group kschedule.groupName= SC-jxC-front no additional configuration is required in the code, just defining the methods that need to be executed on the Kschedule platform. Implementation snippet

nos-spring-boot-starter

Introducing Maven dependencies:

com.netease.haitao.sc
nos-spring-boot-starter
1.0.0

In application. Properties, define the following fields based on actual configuration: nos.accessKey=nos.secretKey= You can inject NosClient using @resource in the code. @Resourceprivate NosClient nosClient; Implementation snippet

spring-boot-starter-dubbo

Maven dependencies are introduced (native Dubbo dependencies need to be excluded). The original implementation: https://github.com/dubbo/dubbo-spring-boot-project, this implementation on the basis of its support @ Reference annotation configuration

io.dubbo.springboot
spring-boot-starter-dubbo
Kaola – sc 1.0.1
com.alibaba
dubbo

In application.properties, define the packets to be scanned in the following field #dubbo according to the actual configuration Spring.dubbo.scan=com.net help ease. Haitao. JXC. Front# application name spring. The dubbo. Application. The name = sc – JXC – spring front# environment. Dubbo. Application The environment = product# spring.dubbo.registry.address=zookeeper://kaola-zk1.dg.163.org:2181?backup=kaola-zk2.dg.163.org ZK address :2181,kaola-zk3.hz.163.org:2181,kaola-> Zk4.hz.163.org: 2181, kaola-zk5.yq.163.org: 2181 # default dubbo services group spring. Dubbo. The provider. The group = online# dubbo services provided by the default version of spring. The dubbo . Provider. Version = 1.0 # service port spring. The dubbo. Protocol. The port = 1 # started relying on service check spring. The dubbo. Consumer. Check = false# consumer service group by default Spring. Dubbo. Consumer. The group = online# default consumer service version spring. Dubbo. Consumer. Version = 1.0 code can be used directly in @ the way of the Reference dependent interface (allowing custom grouping and version), By default, the default group and the default version of the service are reduced.


Netease Cloud Free experience pavilion, 0 cost experience 20+ cloud products!

For more information about netease’s technology, products and operating experience, please click here.


AndroidView part disappear effect implementation