Redirect to new spring.io project page
This commit is contained in:
177
index.html
177
index.html
@@ -1,170 +1,11 @@
|
||||
---
|
||||
# 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: StackOverflow
|
||||
url: http://stackoverflow.com/questions/tagged/spring
|
||||
icon: stackoverflow
|
||||
|
||||
---
|
||||
<!DOCTYPE HTML>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
|
||||
{% 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](https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/overview.html#overview) 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
|
||||
|
||||
* [Core technologies](https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/core.html): dependency injection, events, resources, i18n, validation, data binding, type conversion, SpEL, AOP.
|
||||
* [Testing](https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/testing.html): mock objects, TestContext framework, Spring MVC Test, `WebTestClient`.
|
||||
* [Data Access](https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/data-access.html#spring-data-tier): transactions, DAO support, JDBC, ORM, Marshalling XML.
|
||||
* [Spring MVC](https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html) and
|
||||
[Spring WebFlux](https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html) web frameworks
|
||||
* [Integration](https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/integration.html): remoting, JMS, JCA, JMX, email, tasks, scheduling, cache.
|
||||
* [Languages](https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/languages.html): Kotlin, Groovy, dynamic languages.
|
||||
|
||||
## Minimum requirements
|
||||
|
||||
* JDK 8+ for Spring Framework 5.x
|
||||
* JDK 6+ for Spring Framework 4.x
|
||||
* JDK 5+ for Spring Framework 3.x
|
||||
|
||||
<span id="quick-start"></span>
|
||||
|
||||
## 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();
|
||||
}
|
||||
```
|
||||
|
||||
<br/>
|
||||
`hello/MessagePrinter.java`
|
||||
|
||||
```java
|
||||
package hello;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class MessagePrinter {
|
||||
|
||||
final private MessageService service;
|
||||
|
||||
@Autowired
|
||||
public MessagePrinter(MessageService service) {
|
||||
this.service = service;
|
||||
}
|
||||
|
||||
public void printMessage() {
|
||||
System.out.println(this.service.getMessage());
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
<br/>
|
||||
`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](http://stackoverflow.com/questions/24337486/how-to-properly-do-dependency-injection-in-spring/24363707#24363707),
|
||||
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)
|
||||
|
||||
### Screencasts
|
||||
|
||||
* [How to create a RESTful app in five minutes or less](http://spring.io/blog/2014/11/20/screencast-how-to-create-a-restful-app-in-five-minutes-or-less)
|
||||
{% endcapture %}
|
||||
|
||||
{% include project_page.html %}
|
||||
<meta charset="utf-8">
|
||||
<title>Redirecting…</title>
|
||||
<link rel="canonical" href="http://spring.io/projects/spring-framework">
|
||||
<meta http-equiv="refresh" content="0; url=http://spring.io/projects/spring-framework">
|
||||
<meta name="robots" content="noindex">
|
||||
<h1>Redirecting…</h1>
|
||||
<a href="http://spring.io/projects/spring-framework">Click here if you are not redirected.</a>
|
||||
<script>location="http://spring.io/projects/spring-framework"</script>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user