当前位置: 首页 > news >正文

域名网站是什么网站框架怎么搭建

域名网站是什么,网站框架怎么搭建,wordpress 无法编辑文章,网站开发研究资料书籍1.寻找spring.factories配置文件对应的监听器,主要要写监听器的全路径名,不然反射会报错 SpringBoot底层是如何读取META-INF/spring.factories的配置的? 1.遍历所有jar下的META-INF/spring.factories配置文件 2.读取配置文件下的所有属性&a…

1.寻找spring.factories配置文件对应的监听器,主要要写监听器的全路径名,不然反射会报错

 

 

 SpringBoot底层是如何读取META-INF/spring.factories的配置的?

1.遍历所有jar下的META-INF/spring.factories配置文件

2.读取配置文件下的所有属性,放入map

3.配置文件主要来源于,

3.1.开发者自己放的 

 

 3.2 spring-boot的配置文件 

3.spring-boot-autoconfiguration配置文件

读取完后放入缓存中,主要有13个大类,分别是:

org.springframework.context.ApplicationListener             2个值

======================spring-boot================================

org.springframework.boot.env.PropertySourceLoader           2个值
org.springframework.boot.SpringApplicationRunListener       1个值
org.springframework.boot.SpringBootExceptionReporter        1个值
org.springframework.context.ApplicationContextInitializer   4个值
org.springframework.context.ApplicationListener             9个值
org.springframework.boot.env.EnvironmentPostProcessor       3个值
org.springframework.boot.diagnostics.FailureAnalyzer        13个值
org.springframework.boot.diagnostics.FailureAnalysisReporter  1个值

==================spring-boot-autoconfiguration================================

org.springframework.context.ApplicationContextInitializer  2个值
org.springframework.context.ApplicationListener            1个值
org.springframework.boot.autoconfigure.AutoConfigurationImportListener  1个值
org.springframework.boot.autoconfigure.AutoConfigurationImportFilter  3个值
org.springframework.boot.autoconfigure.EnableAutoConfiguration       118个值
org.springframework.boot.autoconfigure.template.TemplateAvailabilityProvider 5个值

3个配置文件合并后,

ApplicationContextInitializer  6个值

ApplicationListener               12个值

SpringApplicationRunListener  1个

总共13大类

打开断点看看结果是否匹配:刚好6个,完全匹配

 

12个监听器:刚好完全匹配

 获取运行时监听器,刚好1个,完全匹配

org.springframework.boot.SpringApplication#getRunListeners

 org.springframework.boot.SpringApplicationRunListeners#starting

发布一个容器启动事件

 这里有四个监听器在监听容器启动事件

 

http://www.yayakq.cn/news/216352/

相关文章:

  • 做网站的学什么代码哪几个网站适合自己做外贸
  • 做网站得先注册域名吗内网 群晖 wordpress
  • 路由器做映射后 内网可以访问到我的网站 但是外网无法访问品牌推广的概念
  • 学雷锋做美德少年网站怎么搭建购物网站
  • dede手机网站标签网站模块数据同步
  • .net网站 作品wordpress分页样式
  • 代账公司网站模板网站建设与管理 第2版
  • 国外网站大牛不懂英语可以做吗长沙广告公司排行榜
  • 工装设计效果图网站怎么注册公司需要什么资料
  • 网站入口类型长春网站建设吉网传媒实力牜
  • 个人网站网站建设方案书住房和城乡建设部执业资格注册中心官网
  • 网站建设预算模板做个公司网站大概多少钱
  • 网站开发有哪些工作岗位网站建设上线多久
  • 郑州网站建设代理福州网站定制设计
  • 陕西网站建设教程html网站的上传
  • 发帖网站有哪些网络设计原则有哪些
  • 上海网站开发制为啥都用wordpress
  • 免费行情软件app网站大全下载免费电商网站建设课设
  • 网站建设服务公司案例网站制作需要多少费用
  • 南宁公司建站模板企业网站手机版模板免费下载
  • 免费淘宝客网站建设网页搜索如何屏蔽广告
  • 云南省植保植检站网址今天的新闻大事10条
  • 市局网站建设建议软件开发培训一般要多少钱
  • 做第三方团购的平台网站wordpress 大屏模版
  • 网站控制面板 地址河北省和城乡建设厅网站首页
  • logo设计制作网站外贸营销网站建设方案
  • iis 子网站百度收录好最快的网站
  • 网站商城设计方案江苏建设服务信息网站
  • 做网站的感觉做网站一般用什么语言
  • php网站源代码html做网站