What are the advantages of spring boot?

Alibaba cloud Q & A 2022-02-13 09:15:21 阅读数:404

advantages spring boot

Spring Boot What are the advantages of ?




Take the answer 1:

Independent operation

Spring Boot And it's embedded with all kinds of servlet Containers ,Tomcat、Jetty etc. , It's no longer necessary to play war Package deployed to container ,Spring Boot Just type an executable jar The package can run independently , All dependency packages are in one jar In bag

Simplified configuration

spring-boot-starter-web Initiators automatically depend on other components , Jane is missing maven Configuration of .

Automatic configuration

Spring Boot According to the current class path 、jar Package to automatically configure bean, If you add a spring-boot-starter-web The starter can have web The function of , No other configuration required .

No code generation and XML To configure

Spring Boot No code generated during configuration , No need XML Configuration files can do all the configuration work , All this is done with the help of conditional annotation , This is also Spring4.x One of the core functions of .

Application monitoring

Spring Boot Provide a series of endpoints to monitor services and applications , Do a health test .


copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130915195858.html