{"id":49815457,"url":"https://github.com/forezp/BootNettyRpc","last_synced_at":"2026-05-29T21:00:50.034Z","repository":{"id":57733233,"uuid":"135293884","full_name":"forezp/BootNettyRpc","owner":"forezp","description":"一个采用Netty实现的RPC框架，适用于Spring Boot，Spring Cloud!","archived":false,"fork":false,"pushed_at":"2021-09-08T08:12:23.000Z","size":185,"stargazers_count":163,"open_issues_count":2,"forks_count":72,"subscribers_count":13,"default_branch":"master","last_synced_at":"2026-02-01T07:58:02.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forezp.png","metadata":{"files":{"readme":"README-en.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-29T12:38:19.000Z","updated_at":"2025-11-17T02:04:57.000Z","dependencies_parsed_at":"2022-09-26T22:11:20.530Z","dependency_job_id":null,"html_url":"https://github.com/forezp/BootNettyRpc","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/forezp/BootNettyRpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forezp%2FBootNettyRpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forezp%2FBootNettyRpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forezp%2FBootNettyRpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forezp%2FBootNettyRpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forezp","download_url":"https://codeload.github.com/forezp/BootNettyRpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forezp%2FBootNettyRpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33670211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-13T06:00:43.974Z","updated_at":"2026-05-29T21:00:50.025Z","avatar_url":"https://github.com/forezp.png","language":"Java","funding_links":[],"categories":["开发框架"],"sub_categories":["RPC框架"],"readme":"# BootNettyRpc\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?label=license)](https://github.com/forezp/BootNettyRpc/blob/master/LICENSE)\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.forezp/boot-netty-rpc-core.svg?label=maven%20central)](http://mvnrepository.com/artifact/io.github.forezp/boot-netty-rpc-core)\n\nREADME: [English](https://github.com/forezp/BootNettyRpc/blob/master/README-en.md) | [中文](https://github.com/forezp/BootNettyRpc/blob/master/README.md)\n## What's BootNettyRpc?\n\n\nBootNettyRpc  is a open resource of rpc with netty and spring boot !\n\n## How to use? \n\n --oops--@Deprecated--\n\n\n### The server side\n\n1.Add the dependency to your maven pom file.\n\n```\n \u003cdependency\u003e\n       \u003cgroupId\u003eio.github.forezp\u003c/groupId\u003e\n        \u003cartifactId\u003eboot-netty-rpc-core\u003c/artifactId\u003e\n        \u003cversion\u003e1.0.3\u003c/version\u003e\n \u003c/dependency\u003e\n\n```\n\n2.Add @EnableNettyRpc annotation config to your project ,for example:\n\n```\n@SpringBootApplication\n@EnableNettyRpc(basePackages = \"com.forezp\")\n@RestController\npublic class ExampleRpcServerApplication {\n\n    public static void main(String[] args) {\n        SpringApplication.run( ExampleRpcServerApplication.class, args );\n    }\n}\n```\n3. config the netty server port in your  springboot config file,like application.yml:\n\n\n```\nserver:\n  port: 7001\n\nnetty.server.name: server\nnetty.server.port: 6001\n\n```\n\n4. As a service provider ,expose the service to other client\n\n```\n\n@RpcClient(name = \"server\", rpcClz = \"com.forezp.examplerpcserver.api.Greeting\")\npublic interface IGreeting {\n\n    String sayHello(String name);\n}\n\n\n```\n\nImplement the service:\n\n```\n\n@Service\npublic class Greeting implements IGreeting {\n    @Override\n    public String sayHello(String name) {\n        return \"hi \"+name;\n    }\n}\n\n```\n\n### The Client Side\n\n\n1.Add the dependency to your maven pom file.\n\n```\n \u003cdependency\u003e\n       \u003cgroupId\u003eio.github.forezp\u003c/groupId\u003e\n        \u003cartifactId\u003eboot-netty-rpc-core\u003c/artifactId\u003e\n        \u003cversion\u003e1.0.3\u003c/version\u003e\n \u003c/dependency\u003e\n\n```\n\n2.Add @EnableNettyRpc annotation config to your project ,for example:\n\n```\n@SpringBootApplication\n@EnableNettyRpc(basePackages = \"com.forezp\")\n@RestController\npublic class ExampleRpcClientApplication {\n\n    public static void main(String[] args) {\n        SpringApplication.run( ExampleRpcClientApplication.class, args );\n    }\n}\n```\n\n3. config the netty server port in your  springboot config file,like application.yml:\n\n\n```\nnetty:\n  clients:\n    - name: server\n      host: localhost\n      port: 6001\n    - name: server\n      host: localhost\n      port: 6001\n\n```\n\n4.comsume the provider service:\n\n```\n IGreeting invoker = (IGreeting) Invoker.invoke( IGreeting.class );\n Object result = invoker.sayHello( \"sww\" );\n```\n\n## Contact Me\n\nIf there is any problem, let me know. My email: miles02@163.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforezp%2FBootNettyRpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforezp%2FBootNettyRpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforezp%2FBootNettyRpc/lists"}