0x00 Why learn Spring
As you continue to engage and understand Java EE, you will find spring MVC playing an increasingly important role in every enterprise and project. Mastering Spring MVC has become one of the must-learn capabilities of our IT industry.
The Spring framework is an open-source Java/java EE full-featured Stack (full-stack) application framework, published as an Apache license, as well. The migration version on the net platform. The framework is based on the code in the Expert one-on-one Java EE Design and development (ISBN 0-7645-4385-7) book, originally developed by Rod Johnson and Juergen Hoeller. The Spring Framework provides a simple development approach that avoids the large number of property files and helper classes that can cause the underlying code to become cluttered.
0x01 Spring Website Introduction
Spring Official website: https://spring.io/
Spring Document: Https://spring.io/guides
Spring ide:https://spring.io/tools/sts
Spring project:https://spring.io/projects
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
From configuration to security, Web applications to big data-whatever your application's infrastructure needs may be, there is a spring project to help you build it. Start small and use the-spring you need is a modular design.
There are a lot of spring Project, and the spring Framework is what we're going to focus on learning and mastering.
0x02 Spring Framework
Introduction to the Spring framework
The Spring framework core supports dependency injection, transaction management, Web applications, data access, messaging, testing and more.
The Spring Framework provides a comprehensive planning and configuration model for modern Java-based enterprise applications on any deployment platform. A key element of spring is the infrastructure support for the application tier: Spring focuses on the "plumbing" of enterprise applications, so that teams can focus on application-level business logic without unnecessarily contacting specific deployment environments.
Spring Framework feature features
Dependency Injection aspect-oriented programming includes spring's declarative transaction management Spring MVC Web application and Rest Web Services Framework basic support JPA,JDBC,JMS more ...
Minimum Requirements
- JDK 6+ for Spring Framework 4.x
- JDK 5+ for Spring Framework 3.x
Core JAR Package Dependencies:
If you are not writing a Java Web application, you will not need the Spring-web module.
GroupId |
Artifactid |
Description |
Org.springframework |
Spring-aop |
proxy-based AOP Support |
Org.springframework |
Spring-aspects |
AspectJ based aspects |
Org.springframework |
Spring-beans |
Beans support, including Groovy |
Org.springframework |
Spring-context |
Application context runtime, including scheduling and remoting abstractions |
Org.springframework |
Spring-context-support |
Support classes-integrating common third-party libraries into a Spring application context |
Org.springframework |
Spring-core |
Core utilities, used by many and other Spring modules |
Org.springframework |
Spring-expression |
Spring Expression Language (spel) |
Org.springframework |
Spring-instrument |
Instrumentation agent for JVM bootstrapping |
Org.springframework |
Spring-instrument-tomcat |
Instrumentation agent for Tomcat |
Org.springframework |
Spring-jdbc |
JDBC Support package, including DataSource setup and JDBC Access support |
Org.springframework |
Spring-jms |
JMS support package, including helper classes to send/receive JMS messages |
Org.springframework |
Spring-messaging |
Support for messaging architectures and protocols |
Org.springframework |
Spring-orm |
Object/relational Mapping, including JPA and Hibernate support |
Org.springframework |
Spring-oxm |
Object/xml Mapping |
Org.springframework |
Spring-test |
Support for unit testing and integration testing Spring components |
Org.springframework |
Spring-tx |
Transaction infrastructure, including DAO support and JCA integration |
Org.springframework |
Spring-web |
Foundational web support, including Web client and web-based remoting |
Org.springframework |
Spring-webmvc |
http-based Model-view-controller and REST endpoints for Servlet stacks |
Org.springframework |
Spring-webmvc-portlet |
MVC implementation to being used in a Portlet environment |
Org.springframework |
Spring-websocket |
WebSocket and SOCKJS infrastructure, including STOMP messaging support |
1.Spring Framework Introductory Chapter