Difference between Spring MVC and Spring Boot [closed] Ask Question

Difference between Spring MVC and Spring Boot [closed] Ask Question

I have just started learning Spring. In my next step, I would like to develop bigger web applications.

Now I am wondering if I should start with Spring Boot or Spring MVC. I have already read some stuff, but it is confusing because both look similar.

So what are the differences between the two?

ベストアンサー1

  • Spring MVC is a complete HTTP oriented MVC framework managed by the Spring Framework and based in Servlets. It would be equivalent to JSF in the JavaEE stack. The most popular elements in it are classes annotated with @Controller, where you implement methods you can access using different HTTP requests. It has an equivalent @RestController to implement REST-based APIs.
  • Spring Boot は、アプリケーションを素早くセットアップするためのユーティリティで、Spring を利用したアプリケーションを構築するためのすぐに使える構成を提供します。ご存知のとおり、Spring は、spring -corespring-dataspring-web (ちなみに Spring MVC も含まれています) など、さまざまなモジュールを傘下に統合しています。このツールを使用すると、使用するモジュールの数を Spring に指示でき、それらのモジュールを素早くセットアップできます (後で自分で変更することもできます)。

つまり、Spring MVC は Web アプリケーションで使用されるフレームワークであり、Spring Boot は Spring ベースの製品対応プロジェクト初期化子です。SOのSpring MVC タグ wikiSpring Boot タグ wikiにアクセスすると役立つかもしれません。

おすすめ記事