flux-endpoint-parent

Endpoint client for FluxGo

License

License

Categories

Categories

Net
GroupId

GroupId

net.bytepowered
ArtifactId

ArtifactId

flux-endpoint-parent
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

pom
Description

Description

flux-endpoint-parent
Endpoint client for FluxGo
Project URL

Project URL

https://github.com/bytepowered/flux-endpoint
Project Organization

Project Organization

BYTEPOWERED.NET
Source Code Management

Source Code Management

https://github.com/bytepowered/flux-endpoint

Download flux-endpoint-parent

How to add to project

<!-- https://jarcasting.com/artifacts/net.bytepowered/flux-endpoint-parent/ -->
<dependency>
    <groupId>net.bytepowered</groupId>
    <artifactId>flux-endpoint-parent</artifactId>
    <version>0.0.2</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/net.bytepowered/flux-endpoint-parent/
implementation 'net.bytepowered:flux-endpoint-parent:0.0.2'
// https://jarcasting.com/artifacts/net.bytepowered/flux-endpoint-parent/
implementation ("net.bytepowered:flux-endpoint-parent:0.0.2")
'net.bytepowered:flux-endpoint-parent:pom:0.0.2'
<dependency org="net.bytepowered" name="flux-endpoint-parent" rev="0.0.2">
  <artifact name="flux-endpoint-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='net.bytepowered', module='flux-endpoint-parent', version='0.0.2')
)
libraryDependencies += "net.bytepowered" % "flux-endpoint-parent" % "0.0.2"
[net.bytepowered/flux-endpoint-parent "0.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • flux-samples
  • flux-endpoint
  • flux-spring-boot-starter

Flux Endpoint - Flux网关Java接入端点客户端

依赖

见Maven中央仓库: https://search.maven.org/artifact/net.bytepowered/flux-spring-boot-starter

Latest version: 1.0.0

Apache maven

<dependency>
  <groupId>net.bytepowered</groupId>
  <artifactId>flux-spring-boot-starter</artifactId>
  <version>{latest-version}</version>
</dependency>

Gradle

implementation 'net.bytepowered:flux-spring-boot-starter:{latest-version}'

Kotlin Gradle DSL

implementation("net.bytepowered:flux-spring-boot-starter:{latest-version}")

配置

flux:
  base-package: "net.bytepowered.flux.samples.service"
  path-prefix: "/sample"
  metadata-registry:
    address: ${FLUX_REGISTRY_ADDRESSS:zookeeper://localhost:2181}

配置说明

flux.base-package

base-package 指定了FluxEndpoint客户端扫描的包目录路径。在启动时,FluxEndpoint客户端会扫描所有Dubbo的ServiceBean列表。 如果指定base-package参数,客户端将逐一过滤ServiceBean列表,如果ServiceBean所实现的Dubbo接口与base-package路径前缀相同,则进入接口方法扫描逻辑。

path-prefix

path-prefix 指定了生成API地址路径时的全局前缀,为空值时不使用全局前缀。例如在如下的接口定义中:

public interface DemoService {

    @FxMapping(path = "/test/hello", method = FxMethod.GET, authorized = false)
    FxResponse hello(
            @Min(10)
            @FxQuery(value = "group") Integer group,
            @NotEmpty
            @FxQuery List<Integer> state
    );
}

path-prefix配置值为/sample,则FluxEndpoint客户端会添加全局前缀,注册到网关的接口API地址为:/sample/test/hello

metadata-registry

元数据注册中心的配置信息。有如下可配置项:

  • address : Zookeeper的服务地址,多个地址以英文逗号分割。
net.bytepowered

bytepowered.net

BYTE POWERED

Versions

Version
0.0.2
0.0.1-M0