Spring Boot 教程

欢迎来到Spring Boot教程。 Spring Boot是由Pivotal Team(The Spring Team)开发的全新项目,是基于现有的Spring Framework开发的框架。

春天游艇教程

Spring Boot 使用全新的开发模型,通过避免一些繁琐的开发步骤和锅板代码和配置来使 Java 开发变得非常容易。

什么是春运船?

Spring Boot是The Spring Team的框架,旨在简化新 Spring 应用程序的启动和开发。它提供了代码和注释配置的默认设置,以便在短时间内快速启动新 Spring 项目。它遵循Opinionated Defaults Configuration方法,以避免大量的锅炉板代码和配置,以改善开发、单位测试和集成测试过程。

什么不是春天?

Spring Boot Framework不是由The Spring Team从头开始实施的,而不是在现有的Spring Framework(Spring IO Platform)上实施的,它不是用于解决任何新问题,而是用于解决与Spring Framework相同的问题。

为什么是春天船?

  • 简化基于 Java 的应用程序开发、单元测试和集成测试过程
  • 通过提供一些默认功能来缩短开发、单元测试和集成测试的时间
  • 提高生产力

不要担心这个阶段的评论默认配置方法是什么,我们将在即将到来的帖子中详细解释这一点。

春风船的优点:

它减少了很多开发时间,增加了生产率 *它避免了编写大量的锅炉板代码,注释和XML配置 *它非常容易将 Spring Boot 应用程序与其 Spring JDBC, Spring ORM, Spring Data, Spring Security等 Spring 生态系统集成 *它遵循意见的默认配置方法来减少开发者的努力 它提供了嵌入式 HTTP 服务器,如 Tomcat, Jetty 等,开发和测试我们的 Web 应用程序非常容易 它提供了 CLI (命令线接口)工具来开发和测试 Spring Boot(Java 或 Groovy)从命令程序非常轻松的 plug__M_ 非常

In Simple Terminology, What Spring Boot means What Is Spring Boot, Spring Boot Tutorial That means Spring Boot is nothing but existing Spring Framework + Some Embedded HTTP Servers (Tomcat/Jetty etc.) - XML or Annotations Configurations. Here minus means we don't need to write any XML Configuration and few Annotations only.

春运的主要目标:

Spring Boot Framework 的主要目标是缩短开发、单元测试和集成测试时间,并与现有 Spring Framework 相比,简化生产准备的 Web 应用程序的开发,这实际上需要更多的时间。

  • 完全避免 XML 配置
  • 避免定义更多的注释配置(它将一些现有的 Spring Framework 注释合并为一个简单且单一的注释)
  • 避免写出大量的导入陈述
  • 提供一些默认值以在短时间内快速启动新项目
  • 提供意见开发方法

通过提供或避免这些东西,Spring Boot Framework 可减少开发时间、开发人员的努力和提高生产力。

春季游艇的限制/退出:

Spring Boot Framework 有一个局限性. 将现有或旧的 Spring Framework 项目转换为 Spring Boot 应用程序是一个耗时的过程,但我们可以将所有类型的项目转换为 Spring Boot 应用程序。

  • 使用 Spring Boot CLI 工具
  • 使用 Spring STS IDE
  • 使用 Spring Initializr 网站

我们将在即将到来的帖子中详细讨论一些好例子,我们可以找到Spring Initializr网站在: https://start.spring.io/我们可以使用Spring Boot开发两种春季应用的口味

  • 基于 Java 的应用程序
  • Groovy 应用程序

We can use Spring Boot CLI or Spring STS IDE or Spring Initializr Website to develop Spring Boot Groovy Applications. However, we can use Spring STS IDE or Spring Initializr Website to develop Spring Boot Java Applications. Anyhow, Groovy is also JVM language almost similar to Java Language. We can combine both Groovy and Java into one Project. Because like Java files, Groovy files are finally compiled into *.class files only. Both *.groovy and *.java files are converted to *.class file (Same byte code format). java groovy compiler, spring boot Spring Boot Framework Programming model is inspired by Groovy Programming model. Spring Boot internally uses some Groovy based techniques and tools to provide default imports and configuration. Spring Boot Framework also combined existing Spring Framework annotations into some simple or single annotations. We will explore those annotations one by one in coming posts with some real-time examples. Spring Boot Framework drastically changes Spring-Java Based Applications Programming model into new Programming model. As of now, Spring Boot is at initial stage only but future is all about Spring Boot only. Happy Spring Boot Framework Learning!

Published At
Categories with 技术
Tagged with
comments powered by Disqus