在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答/Java/ Spring MVC和Spring Boot有什么區(qū)別?

Spring MVC和Spring Boot有什么區(qū)別?

分不太清它們倆的區(qū)別,我只知道SpringBoot比SpringMVC少了很多配置,像是少了web.xml。然后自帶tomcat,Spring Boot的項(xiàng)目不用搭建一個(gè)tomcat服務(wù)器。

回答
編輯回答
熊出沒(méi)

SpringMVC:

Spring Web MVC is the original web framework built on the Servlet API and included in the Spring Framework from the very beginning. The formal name "Spring Web MVC" comes from the name of its source module spring-webmvc but it is more commonly known as "Spring MVC".

Spring boot:

Spring Boot makes it easy to create stand-alone, production-grade Spring-based Applications that you can run. We take an opinionated view of the Spring platform and third-party libraries, so that you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.

從簡(jiǎn)介我們看出兩者定位其實(shí)不同,SpringMVC是MVC框架,Spring Boot是為了讓你快速開(kāi)發(fā)基于Spring 應(yīng)用.Spring Boot 通過(guò)stater的方式簡(jiǎn)化整個(gè)Spring生態(tài)配置, 比如你題中提到的SpringMVC, 對(duì)應(yīng)的starter就是spring-boot-starter-web, 從開(kāi)發(fā)體驗(yàn)上來(lái)說(shuō)就是你提到的,沒(méi)有很多xml配置,并內(nèi)置了tomcat.

2017年7月4日 09:08
編輯回答
嘟尛嘴

最大的區(qū)別個(gè)人覺(jué)得還是不用搭服務(wù)器,方便部署。
當(dāng)然spring boot占用的資源也比spring mvc多

2018年6月7日 14:10
編輯回答
硬扛

看看這個(gè)
Spring體系常用項(xiàng)目一覽 https://segmentfault.com/a/11...

2017年9月12日 16:43