spring boot面试

Today we will look into some spring boot interview questions and answers. So far, we have discussed some posts about Spring Boot Framework with some real-time examples. In this post, I’m going to give you brief or one-shot answers to some Spring Boot Interview Questions. They are very useful when we want to face interview.

今天,我们将研究一些Sprint Boot子面试的问题和答案。 到目前为止,我们已经通过一些实时示例讨论了有关Spring Boot Framework的一些帖子。 在这篇文章中,我将为您提供一些Spring Boot面试问题的简短或一次性答案。 当我们要面对面试时,它们非常有用。

Spring Boot面试问题 (Spring Boot Interview Questions)

Spring Boot is a one-stop Framework to develop Spring applications very easily. I have covered a lot of spring interview questions earlier, this is specifically for spring boot interview questions and answers.

Spring Boot是一站式框架,可非常轻松地开发Spring应用程序。 我之前已经介绍了很多Spring面试问题 ,这是专门针对Sprint Boot面试的问题和解答。

These spring boot interview questions are good for experienced programmers as well as new to spring boot framework.

这些Spring Boot面试问题对于经验丰富的程序员以及Spring Boot框架的新手都是有益的。

什么是Spring Boot? (What is Spring Boot?)

In simple words, Spring Boot Framework is Auto-Dependency Resolution, Auto-Configuration, Management EndPoints, Embedded HTTP Servers(Jetty/Tomcat etc.) and Spring Boot CLI

简而言之,Spring Boot Framework是自动依赖关系解析,自动配置,管理端点,嵌入式HTTP服务器(Jetty / Tomcat等)和Spring Boot CLI。

In other words, Spring Boot Framework is Spring Boot Starter, Spring Boot Auto-Configurator, Spring Boot Actuator, Embedded HTTP Servers, and Groovy.

换句话说,Spring Boot Framework是Spring Boot Starter,Spring Boot自动配置器,Spring Boot Actuator,嵌入式HTTP Server和Groovy。

In other words, Spring Boot Framework is Spring Boot CLI.

换句话说,Spring Boot Framework是Spring Boot CLI。

NOTE:-
If you are confused about the last two definitions, please read the rest of the post to make it clear.

注意:-
如果您对最后两个定义感到困惑,请阅读文章的其余部分以使其清楚。

为什么我们需要Spring Boot? (Why we need Spring Boot?)

  1. Spring Framework aims to simplify Java Applications Development.
    Spring Framework旨在简化Java应用程序开发。
  2. Spring Boot Framework aims to simplify Spring Development.
    Spring Boot Framework旨在简化Spring开发。

Spring Boot组件 (Spring Boot Components)

Spring Boot Framework has the following components:

Spring Boot Framework具有以下组件:

  1. Spring Boot Starter
    Spring Boot Starter
  2. Spring Boot AutoConfigurator
    Spring Boot自动配置器
  3. Spring Boot Actuator
    弹簧启动执行器
  4. Spring Boot CLI
    Spring Boot CLI
  5. Spring Boot Initilizr
    Spring启动Initilizr

什么是Spring Boot Starter? (What is Spring Boot Starter?)

Spring Boot Starters are just JAR Files. They are used by Spring Boot Framework to provide “Auto-Dependency Resolution”.

Spring Boot Starters只是JAR文件。 Spring Boot Framework使用它们来提供“自动依赖关系解决”。

什么是Spring Boot AutoConfigurator? (What is Spring Boot AutoConfigurator?)

Spring Boot AutoConfigurator is used by Spring Boot Framework to provide “Auto-Configuration”.

Spring Boot框架使用Spring Boot AutoConfigurator提供“自动配置”。

什么是弹簧启动执行器? (What is Spring Boot Actuator?)

Spring Boot Actuator is used by Spring Boot Framework to provide “Management EndPoints” to see Application Internals, Metrics etc.

Spring Boot Framework使用Spring Boot Actuator提供“管理端点”,以查看应用程序内部,指标等。

什么是Spring Boot CLI? (What is Spring Boot CLI?)

In simple words, Spring Boot CLI is Auto Dependency Resolution, Auto-Configuration, Management EndPoints, Embedded HTTP Servers(Jetty, Tomcat etc.) and (Groovy, Auto-Imports)

简而言之,Spring Boot CLI是自动依赖关系解析,自动配置,管理端点,嵌入式HTTP服务器(Jetty,Tomcat等)和(Groovy,自动导入)

In other words, Spring Boot CLI is Spring Boot Starter, Spring Boot Auto-Configurator, Spring Boot Actuator, Embedded HTTP Servers, and Groovy.

换句话说,Spring Boot CLI是Spring Boot Starter,Spring Boot Auto-Configurator,Spring Boot Actuator,嵌入式HTTP Server和Groovy。

With Spring Boot CLI:

使用Spring Boot CLI:

  • No Semicolons
    没有分号
  • No Public and private access modifiers
    没有公共和私人访问修饰符
  • No Imports(Most)
    无进口(最多)
  • No “return” statement
    没有“退货”声明
  • No setters and getters
    没有设置者和获取者
  • No Application class with main() method(It takes care by SpringApplication class).
    没有带有main()方法的Application类(SpringApplication类负责)。
  • No Gradle/Maven builds.
    没有Gradle / Maven构建。
  • No separate HTTP Servers.
    没有单独的HTTP服务器。

什么是Spring Boot Initilizr? (What is Spring Boot Initilizr?)

Spring Boot Initilizr is a Spring Boot tool to bootstrap Spring Boot or Spring Applications very easily.

Spring Boot Initilizr是一个Spring Boot工具,可以非常轻松地引导Spring Boot或Spring Applications。

Spring Boot Initilizr comes in the following forms:

Spring Boot Initilizr具有以下形式:

  1. Spring Boot Initilizr With Web Interface
    具有Web界面的Spring Boot Initilizr
  2. Spring Boot Initilizr With IDEs/IDE Plugins
    具有IDE / IDE插件的Spring Boot Initilizr
  3. Spring Boot Initilizr With Spring Boot CLI
    使用Spring Boot CLI的Spring Boot Initilizr
  4. Spring Boot Initilizr With ThirdParty Tools
    带有第三方工具的Spring Boot Initilizr

为什么我们需要Spring Boot Initilizr? (Why we need Spring Boot Initilizr?)

Spring Boot Initilizr simplifies Spring Applications Development by providing initial project structure and build scripts.

Spring Boot Initilizr通过提供初始项目结构和构建脚本来简化Spring应用程序开发。

  • It reduces Development time
    减少开发时间
  • It increases Productivity
    提高生产力

Maven / Gradle的Spring Boot? (Spring Boot With Maven/Gradle?)

Spring Boot Framework uses one of the greatest features of Maven/Gradle build tools: “Transitively Dependency Resolution Management”.

Spring Boot Framework使用Maven / Gradle构建工具的最大功能之一: “传递依赖项解析管理”

什么是“传递依赖性解决方案管理”? (What is “Transitively Dependency Resolution Management”?)

“Transitively Dependency Resolution Management” means: If we define an “A” dependency in build scripts, “A” is dependent on “B” and “B” is dependent on “C”, That means “A” is also dependent on “C”.
Then Build Tools will download and add all Three Jar files “A”, “B” and “C” to our application classpath.

“传递依赖项解决方案管理”的意思是:如果我们在构建脚本中定义“ A”依赖项,则“ A”依赖于“ B”,而“ B”依赖于“ C”,这意味着“ A”也依赖于“ C”。
然后,构建工具将下载所有三个Jar文件“ A”,“ B”和“ C”并将其添加到我们的应用程序类路径中。

That’s all about Spring Boot interview questions and answers. If you want to learn these concepts in depth, please go through my previous posts one by one. You should also go through official documentation.

这就是有关Spring Boot面试问题和答案的全部内容。 如果您想深入学习这些概念,请逐一阅读我以前的文章。 您还应该阅读官方文档 。

翻译自: https://www.journaldev.com/8611/spring-boot-interview-questions

spring boot面试

spring boot面试_Spring Boot面试问题相关推荐

  1. spring cloud入门_Spring Boot 2.x基础教程:快速入门

    简介 在您第1次接触和学习Spring框架的时候,是否因为其繁杂的配置而退却了?在你第n次使用Spring框架的时候,是否觉得一堆反复黏贴的配置有一些厌烦?那么您就不妨来试试使用Spring Boot ...

  2. spring boot 缓存_Spring Boot 集成 Redis 实现数据缓存

    Spring Boot 集成 Redis 实现数据缓存,只要添加一些注解方法,就可以动态的去操作缓存了,减少代码的操作. 在这个例子中我使用的是 Redis,其实缓存类型还有很多,例如 Ecache. ...

  3. spring boot注释_Spring Boot中的@SpringBootConfiguration注释

    spring boot注释 Spring Boot中的 @SpringBootConfiguration注释是一个类级别的注释,它指示此类提供了应用程序配置. 通常,具有main()方法的类最适合此注 ...

  4. spring boot简介_Spring Boot简介

    spring boot简介 在本教程中,我们将看一下Spring Boot,看看它与Spring框架有何不同. 我们还将讨论Spring Boot提供的各种功能. 什么是Spring Boot? 在开 ...

  5. spring boot示例_Spring Boot完成示例

    spring boot示例 这篇文章提供了一个使用Spring Boot开发松耦合的REST服务的完整示例. 使用spring boot,我们可以开发可独立运行的生产就绪的Java应用程序,使其成为独 ...

  6. spring boot缓存_Spring Boot和缓存抽象

    spring boot缓存 缓存是大多数应用程序的主要组成部分,只要我们设法避免磁盘访问,缓存就会保持强劲. Spring对各种配置的缓存提供了强大的支持 . 您可以根据需要简单地开始,然后进行更多可 ...

  7. spring boot示例_Spring Boot上的Spring社交示例,或者我如何停止担心和喜欢自动配置...

    spring boot示例 对于Spring Boot 1.1.0.RC1,添加了自动配置和Spring Social的启动程序pom,这意味着我不必向pom添加一百个依赖关系,并且将为我处理许多毫无 ...

  8. spring boot程序_Spring Boot –现代Java应用程序的基础

    spring boot程序 Spring Boot是Spring.io中一个相对较新的项目. 其目的是简化创建新的基于Spring Framework的项目,并通过应用一些约定来统一其配置. 这种关于 ...

  9. spring boot 核心_Spring Boot 的 10 个核心模块

    作者:Java技术栈 链接:https://www.jianshu.com/p/11c54edc2d11 学习 Spring Boot 必须得了解它的核心模块,和 Spring 框架一样,Spring ...

最新文章

  1. R语言data.table导入数据实战:data.table使用by函数进行数据分组(aggregate)
  2. Gimmie — 一个创新的 GNOME 面板按次
  3. 高通APQ8074 spi 接口配置
  4. java 微信支付 md5_微信支付MD5签名算法实现
  5. springboot嵌入thymeleaf后css404_SpringBoot2整合Thymeleaf
  6. python中利用re模块使用正则表达式
  7. ide打开项目运行和调试按钮都是灰色的_如何开发一个IDE
  8. 95-34-025-Context-AbstractChannelHandlerContext
  9. DVWA-SQL注入(SQL Injection)低/中/高级别
  10. 维基百科中文语料分析(附实际评论案例)
  11. 电商私域流量搭建规划社群运营推广sop销售转化计划书表格模板方案
  12. 【Android】图像滤镜框架GPUImage从配置到应用
  13. server酱php推送代码,多种语言调用Server酱推送微信模板消息
  14. Linux-shell脚本基础
  15. JSVM实现可伸缩视频编码(SVC)
  16. MySQL连接查询综合应用
  17. Linuxserver沦陷为肉鸡的全过程实录
  18. java淘金者_Java游戏淘金者源码JAVA游戏源码下载
  19. 案例-分析上市公司财务数据判断企业财务造假——基于R语言
  20. Jerry Wang的SAP工作日志 - 2016年1月

热门文章

  1. 设计模式——代理模式与装饰模式的异同
  2. Response实现文件下载
  3. 懒惰是人类进步的动力,勤奋是实现偷懒的途径
  4. [转载] Python Numpy基础总结
  5. [转载] numpy.argmin 使用
  6. 使用jsPlumb插件实现动态连线功能
  7. HTML5网页录音和上传到服务器,支持PC、Android,支持IOS微信
  8. CSRF(跨站请求伪造)攻击 --
  9. MySQL数据库篇之索引原理与慢查询优化之一
  10. wpf的控件style