日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關咨詢
選擇下列產品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯(lián)網營銷解決方案
淺談Spring和SpringBoot區(qū)別

對于SpringSpringBoot到底有什么區(qū)別,我聽到了很多答案,剛開始邁入學習SpringBoot的我當時也是一頭霧水,隨著經驗的積累、我慢慢理解了這兩個框架到底有什么區(qū)別,相信對于用了SpringBoot很久的同學來說,還不是很理解SpringBoot到底和Spring有什么區(qū)別,本篇文章為大家簡單的介紹一下SpringSpringBoot區(qū)別。

一、看一下spring的3全部項目

spring 家族 有很多項目,springboot、spring framework、spring cloud等。

我們常用的也就是,springboot、springcloud、springsecurity、springdata。常說的 springmvc 只是spring framework 的特性之一。

二、springboot核心能力

1、內嵌 Servlet 容器,可以直接打成jar包,通過 java -jar xx.jar 運行項目。

2、提供 starter pom 系列,簡化maven的依賴加載,減少依賴沖突的發(fā)生。

3、支持自動化配置,如下圖。application.properties 文件在引入springboot和未引入springboot時,是不一樣的。

實現(xiàn)的源碼:springboot回去判斷引入的jar包是否有 spring.factories 文件

@EnableAutoConfiguration
@Import({AutoConfigurationImportSelector.class})
protected List getCandidateConfigurations(AnnotationMetadata metadata, AnnotationAttributes attributes) {
 List configurations = SpringFactoriesLoader.loadFactoryNames(this.getSpringFactoriesLoaderFactoryClass(), this.getBeanClassLoader());
 Assert.notEmpty(configurations, "No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.");
 return configurations;
}


當前題目:淺談Spring和SpringBoot區(qū)別
文章網址:http://www.5511xx.com/article/cdjieph.html