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

spring 面试题

1.springboot自动装配

从 这个META-INF/spring-autoconfigure-metadata.properties加载文件

2.springbean 的生命周期

3.spring 如何解绝循环依赖

private final Map<String, Object> earlySingletonObjects = new ConcurrentHashMap<>(16);
private final Map<String, Object> singletonObjects = new ConcurrentHashMap<>(256);
private final Map<String, ObjectFactory<?>> singletonFactories = new HashMap<>(16);

synchronized (this.singletonObjects) {
			Object singletonObject = this.singletonObjects.get(beanName);
			if (singletonObject == null) {
				beforeSingletonCreation(beanName);
				try {
					singletonObject = singletonFactory.getObject();
					newSingleton = true;
				}
				catch (IllegalStateException ex) {
					singletonObject = this.singletonObjects.get(beanName);

				}
				finally {
					afterSingletonCreation(beanName);
				}
				if (newSingleton) {
					addSingleton(beanName, singletonObject);
				}
			}
			return singletonObject;
		}

4. spring cloud zuul 的类型

 forward SendForwardFilter,SimpleHostRoutingFilter

 pre   PreDecorationFilter,FormBodyWrapperFilter,DebugFilter

 post   LocationRewriteFilter,SendErrorFilter,SendResponseFilter

5.spring cloud 的 eureka 的负载保护

相关文章:

  • 第三章 OpenGL ES 基础-基础-GLSL渲染纹理
  • 安卓通过termux部署ChatGLM
  • github(不是git啊)操作记录(踩坑)
  • Linux 自动检测进程是否存活,如果挂掉自动拉起
  • Nodejs 第五十四章(net)
  • linux常用命令2
  • C语言游戏实战(4):人生重开模拟器
  • C++特性之一:继承
  • 【Docker】Neo4j 容器化部署
  • C++:vector类
  • FX110网:1月美国零售货币资金环比上升2.61%,嘉盛环比上升1.86%
  • 微信小程序问题定位——sourcemap文件
  • 7. Linux进程环境
  • Java的动态代理如何实现?
  • react 综合题-旧版
  • OD_2024_C卷_200分_7、5G网络建设【JAVA】【最小生成树】
  • Vue3:ref和reactive实现响应式数据
  • 【LeetCode热题100】73. 矩阵置零(矩阵)
  • boost 压缩与解压缩流
  • 揭秘Apache Kafka消费者:深度理解与实战指南
  • 他站在当代思想的地平线上,眺望浪漫主义的余晖
  • 著名军旅作家、文艺评论家周政保逝世,享年77岁
  • 江苏省委社会工作部部长等多人拟在省志愿服务联合会任职
  • 印方称所有敌对行动均得到反击和回应,不会升级冲突
  • 讲座预告|全球贸易不确定情况下企业创新生态构建
  • AI智能体,是不是可以慢一点? | ToB产业观察