{"id":48680825,"url":"https://github.com/whz11/qynat-spring-boot-starter","last_synced_at":"2026-08-07T13:30:17.169Z","repository":{"id":48454095,"uuid":"389351982","full_name":"whz11/qynat-spring-boot-starter","owner":"whz11","description":"A springboot-starter that can achieve Intranet penetration. 一款可以实现内网穿透的springboot-starter。","archived":false,"fork":false,"pushed_at":"2021-07-29T15:03:45.000Z","size":5887,"stargazers_count":66,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-04T06:56:40.349Z","etag":null,"topics":["java","nat","netty","spring-boot-starter","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whz11.png","metadata":{"files":{"readme":"README.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":"2021-07-25T13:18:31.000Z","updated_at":"2023-02-16T13:45:22.000Z","dependencies_parsed_at":"2022-08-24T05:30:37.848Z","dependency_job_id":null,"html_url":"https://github.com/whz11/qynat-spring-boot-starter","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/whz11/qynat-spring-boot-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whz11%2Fqynat-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whz11%2Fqynat-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whz11%2Fqynat-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whz11%2Fqynat-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whz11","download_url":"https://codeload.github.com/whz11/qynat-spring-boot-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whz11%2Fqynat-spring-boot-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36378971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-06T04:43:03.162Z","status":"online","status_checked_at":"2026-08-07T02:00:06.708Z","response_time":57,"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":["java","nat","netty","spring-boot-starter","springboot"],"created_at":"2026-04-11T01:00:36.067Z","updated_at":"2026-08-07T13:30:17.151Z","avatar_url":"https://github.com/whz11.png","language":"Java","funding_links":[],"categories":["网络编程"],"sub_categories":["Spring Cloud框架"],"readme":"# qynat-springboot-starter\n\n[![](https://img.shields.io/static/v1?label=qynat\u0026message=springboot\u0026color=important)](https://github.com/whz11/qynat-spring-boot-starter/)\n[![](https://img.shields.io/static/v1?label=protocol\u0026message=protobuf\u0026color=ff69b4)](https://developers.google.cn/protocol-buffers?hl=zh-cn)\n[![](https://img.shields.io/static/v1?label=license\u0026message=MIT\u0026color=informational)](https://github.com/whz11/qynat-spring-boot-starter/blob/master/LICENSE)\n[![](https://jitpack.io/v/whz11/qynat-spring-boot-starter.svg)](https://jitpack.io/#whz11/qynat-spring-boot-starter)\n \n\n基于netty的内网穿透工具在springboot中的整合\n\nprotocol协议：[protobuf](https://developers.google.cn/protocol-buffers?hl=zh-cn)\n\n只需在`application.properties`中配置少量信息，实现零代码侵入的web项目内网穿透\n\n项目的server端的源码在另一个多模块项目中，包括client端的命令行版、GUI版，还没写好readme暂时先不贴链接\n\n\n\n## Table of Contents\n\n- [QuickStart](https://github.com/whz11/qynat-spring-boot-starter/blob/master/README.md#QuickStart)\n- [Maintainers](https://github.com/whz11/qynat-spring-boot-starter/blob/master/README.md#maintainers)\n- [License](https://github.com/whz11/qynat-spring-boot-starter/blob/master/README.md#license)\n\n\n\n## QuickStart\n\n### 服务端配置\n\n在项目的lib包下有个`server.jar`,将他部署在可外网访问的服务器上，输入命令（需在jdk环境下）：\n\n```\njava -jar server.jar -p \u003cserver-port\u003e -t \u003ctoken\u003e\n```\n\n看到以下，说明服务端成功运行\n\n```\nQyNat server started on port xxxx\n```\n\n### 客户端配置\n\n#### 引入依赖\n\n\n* maven项目在pom中引入\n\n```xml\n    \u003cdependencies\u003e      \n        \u003cdependency\u003e\n            \u003cgroupId\u003ecom.github.whz11\u003c/groupId\u003e\n            \u003cartifactId\u003eqynat-spring-boot-starter\u003c/artifactId\u003e\n            \u003cversion\u003eTag\u003c/version\u003e\u003c!--见上方jitpack后面的版本--\u003e\n        \u003c/dependency\u003e\n    \u003c/dependencies\u003e\n\n    \u003crepositories\u003e\n        \u003crepository\u003e\n            \u003cid\u003ejitpack.io\u003c/id\u003e\n            \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n        \u003c/repository\u003e\n    \u003c/repositories\u003e\n \n```\n\n* gradle项目\n\n```properties\n\tdependencies {\n\t        implementation 'com.github.whz11:qynat-spring-boot-starter:Tag'\n\t}\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\n\n#### 配置application.properties\n\n```properties\n##server端部署地址\nqynat.server-address=xxx.xxx.xxx.xxx\n##server端部署端口号\nqynat.server-port=7777\n##server端配置令牌（可空）\nqynat.token=123456\n##本机地址（不填自动获取ip地址）\nqynat.proxy-address=localhost\n##本机端口（不填自动默认采用项目的server.port）\nqynat.proxy-port=8080\n##映射端口\nqynat.remote-port=8080\n```\n\n解释：服务运行后，本机地址可以通过`server-address:remote-port`访问\n\n#### 客户端最后一步\n\n在启动类中加上`@EnabledQyNat`注解\n\n```java\n@SpringBootApplication\n@EnabledQyNat\npublic class StarterDemoApplication {\n\n    public static void main(String[] args) {\n        SpringApplication.run(StarterDemoApplication.class, args);\n    }\n\n}\n```\n\n在控制台看到以下，说明客户端启动成功\n\n```\nStarted QyNatClient success mapping at:http://server-address:remote-port\nRegister to qynat\n```\n\n\n\n## Maintainers\n\n[@whz11](https://github.com/whz11/).\n\n\n\n## Contributing\n\nFeel free to dive in! [Open an issue](https://github.com/whz11/qynat-spring-boot-starter/issues/new) or submit PRs.\n\n\n\n## License\n\n[MIT](https://github.com/whz11/qynat-springboot-starter/blob/master/LICENSE) © whz11\n\n\u003cdetails class=\"details-reset details-overlay details-overlay-dark\" id=\"jumpto-line-details-dialog\" style=\"box-sizing: border-box; display: block;\"\u003e\u003csummary data-hotkey=\"l\" aria-label=\"Jump to line\" role=\"button\" style=\"box-sizing: border-box; display: list-item; cursor: pointer; list-style: none;\"\u003e\u003c/summary\u003e\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhz11%2Fqynat-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhz11%2Fqynat-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhz11%2Fqynat-spring-boot-starter/lists"}