# springboot_starter_hprose **Repository Path**: null_837_4473/springboot_starter_hprose ## Basic Information - **Project Name**: springboot_starter_hprose - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-18 - **Last Updated**: 2021-09-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Spring Boot Hprose [![](https://jitpack.io/v/xuejike/springboot_starter_hprose.svg)](https://jitpack.io/#xuejike/springboot_starter_hprose) ## 依赖库 ```xml jitpack.io https://jitpack.io com.github.xuejike springboot_starter_hprose v0.1.1 ``` # 配置说明 ## 服务开启 ```properties #开启服务 bd.rpc.hprose.enabled=true #发布端口 bd.rpc.hprose.url="tcp://0.0.0.0:4321" ``` ```java @com.bidanet.hprose.starter.annotation.HproseService(value = "testService") class Service{ public String test(String test){ return "-->"+test; } } ``` 自动发布服务 为 testService_test ## 客户端开启 ```properties #开启客户端 bd.rpc.hprose.client-enable=true bd.rpc.hprose.client-server-url="tcp://127.0.0.1:4321/" ``` ```java @com.bidanet.hprose.starter.annotation.HproseClient(serverName = "testService") interface TestService{ public String test(String test); } ``` Spring 会自动加载 并初始化 TestService客户端,可以在Spring 直接使用。 ## 配置 ## 注意 如果开启热部署功能需要将该类加入 热启动的ClassLoader 在文件 META-INF/spring-devtools.properties 中加入 ```properties restart.include.bdhprose=/springboot_starter_hprose.*\.jar ```