Spring Boot应用程序在底层是如何运行的?

huangapple go评论87阅读模式
英文:

How does Spring boot Application runs under the hood?

问题

我对Spring Boot还不熟悉,构建工具我使用的是Maven。
我想知道在Maven构建过程完成后Spring Boot应用程序是如何运行的,就像

构建的输出是什么?

构建是如何执行的?

尽管大部分有关构建和运行过程的细节都被IDE(如IntelliJ)抽象化了,但我很想知道内部会发生什么?

英文:

I am new to spring boot and for build tool i am using Maven .
I wanted to know that how does spring boot application runs after maven build process finishes like

What is the output of the build ?

How build is executed ?

Although much of the detail about the build and run process is abstracted away by IDE (like IntelliJ) but i am curious to know about what happens internally ?

答案1

得分: 1

spring-boot-maven-plugin Maven插件可以生成一个可执行的JAR文件,其中包括所有依赖的JAR文件、启动和类加载器代码,以及你的应用程序代码。

英文:

The spring-boot-maven-plugin Maven Plugin can generate an executable JAR which includes all dependency JARs and start-up, classloader code in addition to you application code.

huangapple
  • 本文由 发表于 2020年9月4日 17:59:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/63738935.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定