diff --git a/_config.yml b/_config.yml index 4fa66a78..d2950112 100644 --- a/_config.yml +++ b/_config.yml @@ -16,24 +16,24 @@ gems: ### The following properties will change on a project-by-project basis # Context path in the remote website (usually /), will be prepended to absolute URLs for static resources -baseurl: /gh-pages +baseurl: /spring-cloud-openfeign # Name of the project for display in places like page titles -name: Spring Framework +name: Spring Cloud OpenFeign # ID of the project in the metadata API at spring.io (if this is not a # valid project ID the javascript widgets in the home page will not work) -project: spring-framework +project: spring-cloud-openfeign # Project github URL -github_repo_url: http://github.com/spring-projects/spring-framework +github_repo_url: http://github.com/spring-cloud/spring-cloud-openfeign # Project forum URL -forum: http://forum.spring.io/forum/spring-projects/container +forum: http://stackoverflow.com/questions/tagged/spring-cloud # If you want to include a custom pom.xml or gradle template set these value to true and add _include files -custom_pom_template: false -custom_gradle_template: false +custom_pom_template: true +custom_gradle_template: true ### The following properties are constant for most projects diff --git a/_includes/build.gradle b/_includes/build.gradle new file mode 100644 index 00000000..e933b884 --- /dev/null +++ b/_includes/build.gradle @@ -0,0 +1,16 @@ +buildscript { + dependencies { + classpath "io.spring.gradle:dependency-management-plugin:1.0.3.RELEASE" + } +} + +apply plugin: "io.spring.dependency-management" + +dependencyManagement { + imports { + mavenBom '{@= groupId @}:spring-cloud-openfeign:{@= version @}' + } +} +dependencies { + compile '{@= groupId @}:spring-cloud-starter-openfeign' +} diff --git a/_includes/pom.xml b/_includes/pom.xml new file mode 100644 index 00000000..46102542 --- /dev/null +++ b/_includes/pom.xml @@ -0,0 +1,17 @@ + + + + {@= groupId @} + spring-cloud-openfeign + {@= version @} + pom + import + + + + + + {@= groupId @} + spring-cloud-starter-openfeign + + diff --git a/index.html b/index.html new file mode 100644 index 00000000..5e596166 --- /dev/null +++ b/index.html @@ -0,0 +1,76 @@ +--- +# The name of your project +title: Spring Cloud OpenFeign + +badges: + + # Customize your project's badges. Delete any entries that do not apply. + custom: + - name: Source (GitHub) + url: https://github.com/spring-cloud/spring-cloud-openfeign + icon: github + + - name: StackOverflow + url: http://stackoverflow.com/questions/tagged/spring-cloud + icon: stackoverflow + +--- + + + + +{% capture parent_link %} +[Spring Cloud]({{ site.projects_site_url }}/spring-cloud) +{% endcapture %} + + +{% capture billboard_description %} + +**PROJECT DESCRIPTION** Corpus callosum, +This project provides [OpenFeign](https://github.com/OpenFeign/feign) integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms. + +{% endcapture %} + +{% capture main_content %} + +## Features + +* Declarative REST Client: Feign creates a dynamic implementation of an interface decorated with JAX-RS or Spring MVC annotations + + + +## Quick Start + +{% include download_widget.md %} + + +```java +@SpringBootApplication +@EnableFeignClients +public class WebApplication { + + public static void main(String[] args) { + SpringApplication.run(WebApplication.class, args); + } + + @FeignClient("name") + static interface NameService { + @RequestMapping("/") + public String getName(); + } + +``` + +{% endcapture %} + +{% capture related_resources %} + +### Sample Projects + +* [Feign Using Eureka](https://github.com/spring-cloud-samples/feign-eureka) + +{% endcapture %} + + +{% include project_page.html %} +