@Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface RPCBean
| 限定符和类型 | 可选元素和说明 |
|---|---|
String |
application
Application bean name
|
boolean |
deprecated
Whether the service is deprecated, default value is false
|
String |
document
Service doc, default value is ""
|
Class[] |
exclude |
boolean |
export
Whether to export service, default value is true
|
String |
group
Service group, default value is empty string
|
String |
loadbalance
Load balance strategy, legal values include: random, roundrobin, leastactive
|
String |
module
Module bean name
|
String |
monitor
Monitor bean name
|
String |
path
Service path, default value is empty string
|
String[] |
protocol
Protocol bean names
|
String |
provider
Provider bean name
|
boolean |
register
Whether to register the service to register center, default value is true
|
String[] |
registry
Registry bean name
|
int |
retries
Service invocation retry times
|
String |
tag
Service tag name
|
String |
token
Service token, default value is false
|
String |
version
Service version, default value is empty string
|
int |
weight
Service weight value, default value is 0
|
public abstract boolean export
public abstract boolean deprecated
public abstract boolean register
public abstract int weight
public abstract int retries
public abstract String loadbalance
public abstract String application
Copyright © 2024. All rights reserved.