1.Spring Framework 入门篇

0x00为什么学习Spring

 随着对Java EE的不断接触和理解,你会发现Spring MVC 在各个企业和项目中发挥着越来越重要的作用。掌握Spring MVC 已成为我们IT行业生存必学的本领之一。

 Spring Framework 是一个开源的Java/Java EE全功能栈(full-stack)的应用程序框架,以Apache许可证形式发布,也有.NET平台上的移植版本。该框架基于 Expert One-on-One Java EE Design and Development(ISBN 0-7645-4385-7)一书中的代码,最初由Rod Johnson和Juergen Hoeller等开发。Spring Framework提供了一个简易的开发方式,这种开发方式,将避免那些可能致使底层代码变得繁杂混乱的大量的属性文件和帮助类。

0x01 Spring 官网介绍

Spring 官网:https://spring.io/

Spring 文档:https://spring.io/guides

Spring IDE:      https://spring.io/tools/sts

Spring Project: https://spring.io/projects

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

从配置到安全,Web应用程序到大数据-无论你的应用程序的基础设施需求可能是,有一个Spring项目,以帮助您建立它。启动小,使用你所需要的-Spring是模块化设计.

Spring Project 有很多, 而我们这里将要重点学习和掌握的是Spring Framework。

0x02 Spring Framework

   Spring Framework介绍

Spring Framework核心支持依赖注入,事务管理,Web应用程序,数据访问,消息传递,测试和更多。

Spring Framework提供了现代的基于java的企业应用程序在任何部署平台的综合规划和配置模型。Spring的一个关键要素是应用层的基础设施支持:Spring专注于企业应用程序的“管道”,这样团队就可以专注于应用程序级业务逻辑,而不必对特定部署环境进行不必要的联系。

     Spring Framework 功能特点

依赖注入
面向方面编程包括Spring的声明事务管理
Spring MVC Web应用程序和REST Web服务框架
基本支持JPA,JDBC,JMS
更多…

Minimum requirements

  • JDK 6+ for Spring Framework 4.x
  • JDK 5+ for Spring Framework 3.x

核心Jar包依赖关系:

如果你不是写一个java web Application,那么将不需要spring-web 模块。

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 for integrating common third-party libraries into a Spring application context

org.springframework

spring-core

Core utilities, used by many 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 be used in a Portlet environment

org.springframework

spring-websocket

WebSocket and SockJS infrastructure, including STOMP messaging support

猜你喜欢

转载自www.cnblogs.com/xingyunblog/p/6926927.html