diff --git a/_config.yml b/_config.yml index bc1bafcadb9..1b42f4e15a4 100644 --- a/_config.yml +++ b/_config.yml @@ -10,7 +10,7 @@ redcarpet: ### 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-framework # Name of the project for display in places like page titles name: Spring Framework diff --git a/_includes/build.gradle b/_includes/build.gradle new file mode 100644 index 00000000000..13b18e2952d --- /dev/null +++ b/_includes/build.gradle @@ -0,0 +1,3 @@ +dependencies { + compile '{@= groupId @}:spring-context:{@= version @}' +} \ No newline at end of file diff --git a/_includes/pom.xml b/_includes/pom.xml new file mode 100644 index 00000000000..9c43ca1997b --- /dev/null +++ b/_includes/pom.xml @@ -0,0 +1,7 @@ + + + {@= groupId @} + spring-context + {@= version @} + + \ No newline at end of file diff --git a/img/project-icon-large.png b/img/project-icon-large.png new file mode 100644 index 00000000000..5f2a67b105d Binary files /dev/null and b/img/project-icon-large.png differ diff --git a/index.html b/index.html new file mode 100644 index 00000000000..67f05f586c0 --- /dev/null +++ b/index.html @@ -0,0 +1,159 @@ +--- +# The name of your project +title: Spring Framework + +badges: + + # Specify your project's twitter handle, if any. Delete if none. + twitter: SpringFramework + + # Customize your project's badges. Delete any entries that do not apply. + custom: + - name: Source (GitHub) + url: https://github.com/spring-projects/spring-framework + icon: github + + - name: Issues (JIRA) + url: http://jira.springsource.org/browse/SPR + icon: tracking + + - name: CI (Bamboo) + url: https://build.springsource.org/browse/SPR + icon: ci + + - name: Forum + url: http://forum.spring.io/forum/spring-projects/container + icon: forum + + - name: StackOverflow + url: http://stackoverflow.com/questions/tagged/spring + icon: stackoverflow + +--- + + + +{% capture billboard_description %} +Core support for dependency injection, transaction management, web applications, data access, messaging, testing and more. +{% endcapture %} + +{% capture main_content %} + +## Introduction + +The Spring Framework provides a comprehensive programming and +configuration model for modern Java-based enterprise applications - +on any kind of deployment platform. A key element of Spring is +infrastructural support at the application level: Spring focuses on the +"plumbing" of enterprise applications so that teams can focus on +application-level business logic, without unnecessary ties to specific +deployment environments. + +## Features + +* Dependency Injection +* Aspect-Oriented Programming including Spring's declarative transaction management +* Spring MVC web application and RESTful web service framework +* Foundational support for JDBC, JPA, JMS +* Much more... + + +## Quick Start + +{% include download_widget.md %} + +Spring Framework includes a number of different modules, here we are showing `spring-context` which provides core functionality. Refer to the getting started guides on the right for other options. + +Once you've set up your build with the `spring-context` dependency, you'll be able to do the following: + +`hello/MessageService.java` + +```java +package hello; + +public interface MessageService { + String getMessage(); +} +``` + +
+`hello/MessagePrinter.java` + +```java +package hello; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +@Component +public class MessagePrinter { + + @Autowired + private MessageService service; + + public void printMessage() { + System.out.println(this.service.getMessage()); + } +} +``` + +
+`hello/Application.java` + +```java +package hello; + +import org.springframework.context.ApplicationContext; +import org.springframework.context.annotation.*; + +@Configuration +@ComponentScan +public class Application { + + @Bean + MessageService mockMessageService() { + return new MessageService() { + public String getMessage() { + return "Hello World!"; + } + }; + } + + public static void main(String[] args) { + ApplicationContext context = + new AnnotationConfigApplicationContext(Application.class); + MessagePrinter printer = context.getBean(MessagePrinter.class); + printer.printMessage(); + } +} +``` + +The example above shows the basic concept of dependency injection, the `MessagePrinter` is +decoupled from the `MessageService` implementation, with Spring Framework wiring everything +together. + + + +{% endcapture %} + +{% capture related_resources %} + +### Getting Started Guides + +* [Building a RESTful Web Service]({{site.main_site_url}}/guides/gs/rest-service) +* [Consuming a RESTful Web Service]({{site.main_site_url}}/guides/gs/consuming-rest) +* [Managing Transactions]({{site.main_site_url}}/guides/gs/managing-transactions) +* [Accessing Relational Data using JDBC with Spring]({{site.main_site_url}}/guides/gs/relational-data-access) +* [Scheduling Tasks]({{site.main_site_url}}/guides/gs/scheduling-tasks) +* [Serving Web Content]({{site.main_site_url}}/guides/gs/serving-web-content) +* [Validating Form Input]({{site.main_site_url}}/guides/gs/validating-form-input) +* [Messaging with JMS]({{site.main_site_url}}/guides/gs/messaging-jms) + +### Tutorials + +* [Designing and Implementing RESTful Web Services with Spring]({{site.main_site_url}}/guides/tutorials/rest) + +{% endcapture %} + +{% include project_page.html %} + \ No newline at end of file