Spring Boot 集成
Orbien客户端支持内嵌到Spring Boot应用中运行,主要用于web开发临时测试,快速暴露为远程服务,数据不会持久化到服务端,生命周期同项目,
属于SESSION类型客户端。最新版本可从 Maven 中央仓库获取。
- Maven
- Gradle
<dependency>
<groupId>io.github.lxien</groupId>
<artifactId>orbien-spring-boot-starter</artifactId>
<version>0.28.1</version>
</dependency>
implementation("io.github.lxien:orbien-spring-boot-starter:0.28.1")
在application.yml中添加配置
orbien:
client:
enabled: true
server-addr: <server-host>
auth:
token: <access-token>
proxy:
protocol: http
更多复杂场景配置请查看源码。