{"id":48680784,"url":"https://github.com/DanielLiu1123/httpexchange-spring-boot-starter","last_synced_at":"2026-04-26T20:00:40.687Z","repository":{"id":65419996,"uuid":"586441279","full_name":"DanielLiu1123/httpexchange-spring-boot-starter","owner":"DanielLiu1123","description":"The missing starter for Spring 6 declarative HTTP client (@HttpExchange).","archived":false,"fork":false,"pushed_at":"2026-03-23T11:32:28.000Z","size":2564,"stargazers_count":54,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-24T09:02:26.683Z","etag":null,"topics":["declarative-http-client","graalvm","http-client","java","jdk17","native-image","spring-boot","spring-boot-starter","spring-cloud","spring6"],"latest_commit_sha":null,"homepage":"https://danielliu1123.github.io/httpexchange-spring-boot-starter/","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/DanielLiu1123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-01-08T06:18:49.000Z","updated_at":"2026-03-23T11:32:30.000Z","dependencies_parsed_at":"2026-03-23T14:05:11.547Z","dependency_job_id":null,"html_url":"https://github.com/DanielLiu1123/httpexchange-spring-boot-starter","commit_stats":null,"previous_names":[],"tags_count":76,"template":false,"template_full_name":null,"purl":"pkg:github/DanielLiu1123/httpexchange-spring-boot-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielLiu1123%2Fhttpexchange-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielLiu1123%2Fhttpexchange-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielLiu1123%2Fhttpexchange-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielLiu1123%2Fhttpexchange-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielLiu1123","download_url":"https://codeload.github.com/DanielLiu1123/httpexchange-spring-boot-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielLiu1123%2Fhttpexchange-spring-boot-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32310804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["declarative-http-client","graalvm","http-client","java","jdk17","native-image","spring-boot","spring-boot-starter","spring-cloud","spring6"],"created_at":"2026-04-11T01:00:36.064Z","updated_at":"2026-04-26T20:00:40.679Z","avatar_url":"https://github.com/DanielLiu1123.png","language":"Java","readme":"# \u003cimg src=\"website/static/img/logo.png\" width=\"80\" height=\"80\"\u003e HttpExchange Spring Boot Starter [![Build](https://img.shields.io/github/actions/workflow/status/DanielLiu1123/httpexchange-spring-boot-starter/build.yml?branch=main)](https://github.com/DanielLiu1123/httpexchange-spring-boot-starter/actions) [![Maven Central](https://img.shields.io/maven-central/v/io.github.danielliu1123/httpexchange-spring-boot-starter)](https://search.maven.org/artifact/io.github.danielliu1123/httpexchange-spring-boot-starter) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nSpring 6 now supports creating HTTP clients using the [`@HttpExchange`](https://docs.spring.io/spring-framework/reference/integration/rest-clients.html#rest-http-interface) annotation.\nThis removes the need for [Spring Cloud OpenFeign](https://github.com/spring-cloud/spring-cloud-openfeign).\n\nThe main goals of this project are:\n\n- To promote `@HttpExchange` as the standard for defining API interfaces.\n- To offer an experience similar to `Spring Cloud OpenFeign` for declarative HTTP clients.\n- To avoid external annotations, making it easier to switch to other implementations.\n\n\u003e [!NOTE]\\\n\u003e Spring Boot 4.x has supported automatic registration of `@HttpExchange` interfaces. However, the current official implementation still suffers from unnecessary repetition and verbosity. \n\u003e Therefore, this project will continue to be maintained, offering a cleaner, more elegant, and more ergonomic alternative until the Spring Boot team gets it right.\n\n## Quick Start\n\nSpring Boot \u003e= 4.0.0:\n\n```groovy\nimplementation(\"org.springframework.boot:spring-boot-starter-restclient\") // use RestClient as underlying http client\n// implementation(\"org.springframework.boot:spring-boot-starter-webclient\") // use WebClient as underlying http client\nimplementation(\"io.github.danielliu1123:httpexchange-spring-boot-starter:\u003clatest\u003e\")\n```\n\nSpring Boot \u003c 4.0.0:\n\n```groovy\nimplementation(\"io.github.danielliu1123:httpexchange-spring-boot-starter:3.5.5\")\n```\n\n```java\n@HttpExchange(\"https://my-json-server.typicode.com\")\ninterface PostApi {\n    @GetExchange(\"/typicode/demo/posts/{id}\")\n    Post getPost(@PathVariable(\"id\") int id);\n}\n\n@SpringBootApplication\n@EnableExchangeClients\npublic class App {\n    public static void main(String[] args) {\n        SpringApplication.run(App.class, args);\n    }\n\n    @Bean\n    ApplicationRunner runner(PostApi api) {\n        return args -\u003e api.getPost(1);\n    }\n}\n```\n\nRefer to [quick-start](examples/quick-start).\n\n## Documentation\n\nGo to [Reference Documentation](https://danielliu1123.github.io/httpexchange-spring-boot-starter/docs/intro) for more information.\n\n## Code of Conduct\n\nThis project is governed by the [Code of Conduct](./CODE_OF_CONDUCT.md).\nBy participating, you are expected to uphold this code of conduct.\nPlease report unacceptable behavior to llw599502537@gmail.com.\n\n## Contributing\n\nUse the [issue tracker](https://github.com/DanielLiu1123/httpexchange-spring-boot-starter/issues) for bug reports, \nfeature requests, and submitting pull requests.\n\nIf you would like to contribute to the project, please refer to [Contributing](./CONTRIBUTING.md).\n\n## License\n\nThe MIT License.\n\n## Special Thanks\n\nMany thanks to [JetBrains](https://www.jetbrains.com/) for sponsoring this Open Source project with a license.\n","funding_links":[],"categories":["网络编程"],"sub_categories":["Spring Cloud框架"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDanielLiu1123%2Fhttpexchange-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDanielLiu1123%2Fhttpexchange-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDanielLiu1123%2Fhttpexchange-spring-boot-starter/lists"}