[译] 天天一段 Spring 5 官方文档(5.1.4.RELEASE)—— Spring Framework Overview 10

Spring 框架概览

开始时间 10:53,结束时间 11:04,用时 9 mins。java

3. Design Philosophy

When you learn about a framework, it’s important to know not only what it does but what principles it follows. Here are the guiding principles of the Spring Framework:app

  • Provide choice at every level. Spring lets you defer design decisions as late as possible. For example, you can switch persistence providers through configuration without changing your code. The same is true for many other infrastructure concerns and integration with third-party APIs.框架

  • Accommodate diverse perspectives. Spring embraces flexibility and is not opinionated about how things should be done. It supports a wide range of application needs with different perspectives.ide

  • Maintain strong backward compatibility. Spring’s evolution has been carefully managed to force few breaking changes between versions. Spring supports a carefully chosen range of JDK versions and third-party libraries to facilitate maintenance of applications and libraries that depend on Spring.学习

  • Care about API design. The Spring team puts a lot of thought and time into making APIs that are intuitive and that hold up across many versions and many years.flex

  • Set high standards for code quality. The Spring Framework puts a strong emphasis on meaningful, current, and accurate javadoc. It is one of very few projects that can claim clean code structure with no circular dependencies between packages.ui

翻译

设计原理

当你学习一门框架的时候,重要的不单单是学会使用,更是这个框架所遵循的原则。下面是 Spring 框架遵循的指导原则: -你提供每一个级别选择,Spring 容许你尽量晚的决定设计方案。好比,你能够经过配置选择持久化框架而不是改变代码。集成第三方 API 和其余基础设施问题也是如此。翻译

  • 容纳不一样的观点。Spring 包容灵活性,并且不像 Spring Boot 那样执拗己见地决断应该怎么作。她支持普遍应用须要的不一样观点。
  • 持续且强大的向后兼容性。Spring 精心设计着发展,来阻止不一样版本之间的冲突。Spring 支持多个 JDK 版本和第三方库,以便于维护依赖于 Spring 的应用程序和库。
  • 关注与 API 的设计。Spring 团队花费了不少精力和时间来让设计直观的 API,而且能够持续多个版本和时间。
  • 高标准的代码质量。Spring 框架强调有意义的、当前的以及精确的文档。她是少数可声明简洁的代码结构,在各个包之间没有循环依赖。

词汇

  1. Philosophy [fɪ'lɒsəfɪ] 哲学;Design Philosophy 设计原理
  2. trivial ['trɪvɪəl] 不重要的,琐碎的
  3. innovate ['ɪnəveɪt] v. 创新
  4. infrastructure ['ɪnfrəstrʌktʃə] 基础设施
  5. concerns [kən'sɜːn] 关心 n.
  6. Accommodate [ə'kɒmədeɪt] 容纳
  7. diverse [daɪ'vɜːs; 'daɪvɜːs] 多种多样的、不一样的
  8. Maintain [meɪn'teɪn; mən'teɪn] 持续
  9. compatibility [kəm,pætɪ'bɪlɪtɪ] 兼容性
  10. perspective [pə'spektɪv] 观点
  11. intuitive [ɪn'tjuːɪtɪv] 直觉的
  12. emphasis ['emfəsɪs] 重点,强调
  13. accurate [ˈækjərət] 精确的
相关文章
相关标签/搜索