1. What is Spring?
Spring makes it easy to create Java enterprise applications.It provides everything you need to embrace the Java language in an enterprise environment, with support for Groovy and Kotlin as alternative languages on the JVM, and with the flexibility to create many kinds of architectures depending on an application’s needs.
Most often, when people say “Spring”, they mean the entire family of projects.
简言之,Spring 就像一个大齿轮,它可以将Java enterprise applications用到的几乎各个方面的架构(小齿轮)都连接起来。
And, Spring is open source.
2. What is Spring Framework?
Over time, other Spring projects have been built on top of the Spring Framework. The Spring Framework is divided into modules. Applications can choose which modules they need. At the heart are the modules of the core container, including a configuration model and a dependency injection mechanism.Beyond that, the Spring Framework provides foundational support for different application architectures, including messaging, transactional data and persistence, and web. It also includes the Servlet-based Spring MVC web framework and, in parallel, the Spring WebFlux reactive web framework.
简言之,Spring Framework 由多个模块组成,Applications 可以根据需要来选择模块。平时开发最主要用到的应该还是transactional data and persistence, and web。
-
Spring 是一套 Java enterprise applications 开发的解决方案,不是指特定的框架。它 provides everything you need to embrace the Java language in an enterprise environment
-
Spring Framework 是一个框架,更是一个容器,它 provides foundational support for different application architectures
(When you learn about a framework, it’s important to know not only what it does but what principles it follows.)