SpringBoot源码解析(二)

news/2024/11/1 20:22:45/

SpringBoot的启动过程。我们可以看出一个SpringBoot。入口为SpringApplication.run方法,

第二步,根据RepositoryConfigurationDelegate读取配置文件信息。初始化配置。

第三步,o.s.cloud.context.scope.GenericScope 根据配置文件信息创建bean工厂。

第四步, trationDelegate$BeanPostProcessorChecker检查bean创建是否合法。

第五步,o.s.b.w.embedded.tomcat.TomcatWebServe初始化springboot内置Tomcat容器。

第六步,w.s.c.ServletWebServerApplicationContext 创建Servlet

第七步,c.c.f.a.s.a.SpringValueProcessor   开启可访问镜像。

以下是一个springboot的加载输出日志:

2022-10-19 10:18:04.370  INFO 30268 --- [           main] cn.xxx.xxx.MXXXBusinessApplication  : No active profile set, falling back to default profiles: default
2022-10-19 10:18:06.598  INFO 30268 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2022-10-19 10:18:06.603  INFO 30268 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-10-19 10:18:06.673  INFO 30268 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 45 ms. Found 0 Redis repository interfaces.
2022-10-19 10:18:07.116  INFO 30268 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=5eafe63c-6cce-367c-afac-7da202182c04
2022-10-19 10:18:07.930  INFO 30268 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-10-19 10:18:07.934  INFO 30268 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-10-19 10:18:07.936  INFO 30268 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'reactorDeferringLoadBalancerExchangeFilterFunction' of type [org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-10-19 10:18:08.842  INFO 30268 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8302 (http)
2022-10-19 10:18:08.856  INFO 30268 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2022-10-19 10:18:08.857  INFO 30268 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.48]
2022-10-19 10:18:09.048  INFO 30268 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2022-10-19 10:18:09.048  INFO 30268 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 4631 ms
2022-10-19 10:18:10.574  INFO 30268 --- [           main] c.c.f.a.s.a.SpringValueProcessor         : Monitoring key: keys.RSAPublicKey, beanName: userTokenUtils, method: cn.ctg.common.util.UserTokenUtils.setRasPublicKey
2022-10-19 10:18:10.574  INFO 30268 --- [           main] c.c.f.a.s.a.SpringValueProcessor         : Monitoring key: keys.RSAPrivateKey, beanName: userTokenUtils, method: cn.ctg.common.util.UserTokenUtils.setRasPrivateKey
2022-10-19 10:18:10.575  INFO 30268 --- [           main] c.c.f.a.s.a.SpringValueProcessor         : Monitoring key: keys.aeskey, beanName: userTokenUtils, method: cn.ctg.common.util.UserTokenUtils.setAesKey


http://www.ppmy.cn/news/919309.html

相关文章

HttpWebRequest 上传图片

public string HttpUploadFile(){string url "http://localhost:50380/WebForm1.aspx";string filepath "C:\\Users\\lei2.wang\\Desktop\\Capture.PNG";string fileformname "Capture.PNG";string poststr "";// 这个可以是改变的…

阳历日期转阴历工具类

直接上代码 public class DateUtill {final private static long[] lunarInfo new long[] { 0x04bd8, 0x04ae0,0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554, 0x056a0, 0x09ad0,0x055d2, 0x04ae0, 0x0a5b6, 0x0a4d0, 0x0d250, 0x1d255, 0x0b540,0x0d6a0, 0x0ada2, 0x095b0, …

农历插件

<html> <head> <meta http-equiv"Content-Type" content"text/html; charsetgb2312"> <TITLE>带农历的日历</TITLE> <SCRIPT language"JavaScript"> <!-- var lunarInfonew Array( 0x04bd8,0…

k8s- HPA应用

部署 HPA HPA&#xff08;Horizontal Pod Autoscaling&#xff09;Pod 水平自动伸缩&#xff0c;Kubernetes 有一个 HPA 的资源&#xff0c;HPA 可以根据 CPU 利用率自动伸缩一个 Replication Controller、 Deployment 或者Replica Set 中的 Pod 数量。 &#xff08;1&#xf…

ANTS 配准 roi配准之个体空间

Given ROIs fixedLabels.nii.gz, to be resampled into the space of movingImage.nii.gz, we would use the same warps: ${ANTSPATH}antsApplyTransforms \-d 3 \-i fixedImage.nii.gz \-r movingImage.nii.gz \
 -t [movingToFixed_0GenericAffine.mat, 1] \
 -t movin…

ANTS医学影像配准+Li‘s 核磁共振影像数据处理

ANTS医学影像配准Li‘s 核磁共振影像数据处理 讲解视频内容请移步Bilibili&#xff1a; https://space.bilibili.com/542601735 入群讨论请加v hochzeitstorte 请注明“核磁共振学习” 公众号&#xff1a;美好事物中转站 ANTS配准 Advanced Normalization Tools If you want a…

go语言公历农历转化

在主函数中调用 package main import ( “fmt” “code.text.com/Work/test/convert” ) func main(){ //农历转公历 //a : convert.ConvertLunarToSolar(1999, 3, 8, false) //fmt.Println(a) //公历转农历 a : convert.ConvertSolarToLunar(1999, 4, 23) // 1998-3-18 fmt…

转:关于日历实现代码里0x04bd8, 0x04ae0, 0x0a570的解释

转自&#xff1a;http://blog.csdn.net/onlyonecoder/article/details/8484118 android日历实现代码在&#xff1a;http://blog.csdn.net/onlyonecoder/article/details/8481799#comments new Array( 0x04bd8,0x04ae0,0x0a570,0x054d5,0x0d260,0x0d950,0x16554,0x056a0,0x09ad0…