Skip to content

Commit a789071

Browse files
author
Phillip Webb
committed
Add project page
1 parent 171918e commit a789071

File tree

5 files changed

+170
-1
lines changed

5 files changed

+170
-1
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ redcarpet:
1010
### The following properties will change on a project-by-project basis
1111

1212
# Context path in the remote website (usually /<project>), will be prepended to absolute URLs for static resources
13-
baseurl: /gh-pages
13+
baseurl: /spring-framework
1414

1515
# Name of the project for display in places like page titles
1616
name: Spring Framework

_includes/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dependencies {
2+
compile '{@= groupId @}:spring-context:{@= version @}'
3+
}

_includes/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<dependencies>
2+
<dependency>
3+
<groupId>{@= groupId @}</groupId>
4+
<artifactId>spring-context</artifactId>
5+
<version>{@= version @}</version>
6+
</dependency>
7+
</dependencies>

img/project-icon-large.png

33.5 KB
Loading

index.html

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
---
2+
# The name of your project
3+
title: Spring Framework
4+
5+
badges:
6+
7+
# Specify your project's twitter handle, if any. Delete if none.
8+
twitter: SpringFramework
9+
10+
# Customize your project's badges. Delete any entries that do not apply.
11+
custom:
12+
- name: Source (GitHub)
13+
url: https://github.com/spring-projects/spring-framework
14+
icon: github
15+
16+
- name: Issues (JIRA)
17+
url: http://jira.springsource.org/browse/SPR
18+
icon: tracking
19+
20+
- name: CI (Bamboo)
21+
url: https://build.springsource.org/browse/SPR
22+
icon: ci
23+
24+
- name: Forum
25+
url: http://forum.spring.io/forum/spring-projects/container
26+
icon: forum
27+
28+
- name: StackOverflow
29+
url: http://stackoverflow.com/questions/tagged/spring
30+
icon: stackoverflow
31+
32+
---
33+
<!DOCTYPE HTML>
34+
<html lang="en-US">
35+
36+
{% capture billboard_description %}
37+
Core support for dependency injection, transaction management, web applications, data access, messaging, testing and more.
38+
{% endcapture %}
39+
40+
{% capture main_content %}
41+
42+
## Introduction
43+
44+
The Spring Framework provides a comprehensive programming and
45+
configuration model for modern Java-based enterprise applications -
46+
on any kind of deployment platform. A key element of Spring is
47+
infrastructural support at the application level: Spring focuses on the
48+
"plumbing" of enterprise applications so that teams can focus on
49+
application-level business logic, without unnecessary ties to specific
50+
deployment environments.
51+
52+
## Features
53+
54+
* Dependency Injection
55+
* Aspect-Oriented Programming including Spring's declarative transaction management
56+
* Spring MVC web application and RESTful web service framework
57+
* Foundational support for JDBC, JPA, JMS
58+
* Much more...
59+
60+
<span id="quick-start"></span>
61+
## Quick Start
62+
63+
{% include download_widget.md %}
64+
65+
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.
66+
67+
Once you've set up your build with the `spring-context` dependency, you'll be able to do the following:
68+
69+
`hello/MessageService.java`
70+
71+
```java
72+
package hello;
73+
74+
public interface MessageService {
75+
String getMessage();
76+
}
77+
```
78+
79+
<br/>
80+
`hello/MessagePrinter.java`
81+
82+
```java
83+
package hello;
84+
85+
import org.springframework.beans.factory.annotation.Autowired;
86+
import org.springframework.stereotype.Component;
87+
88+
@Component
89+
public class MessagePrinter {
90+
91+
@Autowired
92+
private MessageService service;
93+
94+
public void printMessage() {
95+
System.out.println(this.service.getMessage());
96+
}
97+
}
98+
```
99+
100+
<br/>
101+
`hello/Application.java`
102+
103+
```java
104+
package hello;
105+
106+
import org.springframework.context.ApplicationContext;
107+
import org.springframework.context.annotation.*;
108+
109+
@Configuration
110+
@ComponentScan
111+
public class Application {
112+
113+
@Bean
114+
MessageService mockMessageService() {
115+
return new MessageService() {
116+
public String getMessage() {
117+
return "Hello World!";
118+
}
119+
};
120+
}
121+
122+
public static void main(String[] args) {
123+
ApplicationContext context =
124+
new AnnotationConfigApplicationContext(Application.class);
125+
MessagePrinter printer = context.getBean(MessagePrinter.class);
126+
printer.printMessage();
127+
}
128+
}
129+
```
130+
131+
The example above shows the basic concept of dependency injection, the `MessagePrinter` is
132+
decoupled from the `MessageService` implementation, with Spring Framework wiring everything
133+
together.
134+
135+
136+
137+
{% endcapture %}
138+
139+
{% capture related_resources %}
140+
141+
### Getting Started Guides
142+
143+
* [Building a RESTful Web Service]({{site.main_site_url}}/guides/gs/rest-service)
144+
* [Consuming a RESTful Web Service]({{site.main_site_url}}/guides/gs/consuming-rest)
145+
* [Managing Transactions]({{site.main_site_url}}/guides/gs/managing-transactions)
146+
* [Accessing Relational Data using JDBC with Spring]({{site.main_site_url}}/guides/gs/relational-data-access)
147+
* [Scheduling Tasks]({{site.main_site_url}}/guides/gs/scheduling-tasks)
148+
* [Serving Web Content]({{site.main_site_url}}/guides/gs/serving-web-content)
149+
* [Validating Form Input]({{site.main_site_url}}/guides/gs/validating-form-input)
150+
* [Messaging with JMS]({{site.main_site_url}}/guides/gs/messaging-jms)
151+
152+
### Tutorials
153+
154+
* [Designing and Implementing RESTful Web Services with Spring]({{site.main_site_url}}/guides/tutorials/rest)
155+
156+
{% endcapture %}
157+
158+
{% include project_page.html %}
159+
</html>

0 commit comments

Comments
 (0)