在学习 Spring 的时候,我们必须得有个整体性的概念。
这个概念就是:
Spring 到底是什么?
官网给了如下的介绍:
The Spring Framework 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.
其实看了上面的介绍,你也不知道它到底能干什么,不能给你清晰的认识。
而且,关于 Spring 到底是什么?其实概念越不清晰,总的来说,就是能帮助我们更快的进行开发。
它让我们不再去做开发过程中一些重复性的劳动,而让开发者专注于业务的实现。
它就像我们以前用过的 PPT模板 一样,将样式完成,我们只需要在适当的地方,添加我们自己的内容即可。
人们也将其称为 框架。其实 框架 和 模板 的意思很接近。