Adding this annotation to an @Configuration
class imports the Spring MVC configuration from WebMvcConfigurationSupport
, e.g.:
实践Spring Enable系列之EnableScheduling
Enables Spring’s scheduled task execution capability, similar to functionality found in Spring’s <task:*>
XML namespace. To be used on @Configuration
classes as follows:
实践Spring Enable系列之EnableCaching
##
实践Maven
介绍
实践Markdown
实践Spring Data JPA
Spring Data JPA, part of the larger Spring Data family, makes it easy to easily implement JPA based repositories. This module deals with enhanced support for JPA based data access layers. It makes it easier to build Spring-powered applications that use data access technologies.
实践Spring之事务
EnableTransactionManagement
实践Spring之IoC或DI
面向对象编程中很重要的一步就是进行对象设计和定义(比如类或接口等),而下一步就要考虑如何使用这些对象,一般是先通过实例化对象来生产实例,然后调用实例的方法来执行逻辑。其中实例化有多种方法,传统的new,Class.forName()和反射等,当项目较大,对象和实例将会非常多,依赖关系也会较为复杂,一般传统的方式会较难控制。Spring提供的IoC或DI,使用配置的方式来完成实例容器、实例化、实例间的依赖关系(依赖注入)和生命周期管理等。
实践Spring Data
Spring Data’s mission is to provide a familiar and consistent, Spring-based programming model for data access while still retaining the special traits of the underlying data store. It makes it easy to use data access technologies, relational and non-relational databases, map-reduce frameworks, and cloud-based data services. This is an umbrella project which contains many subprojects that are specific to a given database. The projects are developed by working together with many of the companies and developers that are behind these exciting technologies.
实践Spring Data Rest
Spring Data Rest is part of the umbrella Spring Data project and makes it easy to build hypermedia-driven REST web services on top of Spring Data repositories.