Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What does spring boot @ springbootapplication annotation do in spring boot?


Asked by Rowan Fischer on Dec 12, 2021 Spring



Spring Boot @SpringBootApplication annotation is used to mark a configuration class that declares one or more @Bean methods and also triggers auto-configuration and component scanning. It’s same as declaring a class with @Configuration, @EnableAutoConfiguration and @ComponentScan annotations.
Moreover,
Spring Boot is a Framework from “The Spring Team” to ease the bootstrapping and development of new Spring Applications. It provides defaults for code and annotation configuration to quick start new Spring projects within no time.
Keeping this in consideration, Spring @Service annotation is a specialization of @Component annotation. Spring Service annotation can be applied only to classes. It is used to mark the class as a service provider. Spring @Service annotation is used with classes that provide some business functionalities.
In addition,
Spring is a popular Java application framework and Spring Boot is an evolution of Spring that helps create stand-alone, production-grade Spring based applications easily. @Repository A repository is a mechanism for encapsulating storage, retrieval, and search behavior which emulates a collection of objects.
Besides,
Before we start, let's look at what Reactor Netty is and how it relates to Spring Boot. Reactor Netty is an asynchronous event-driven network application framework. It provides non-blocking and backpressure-ready TCP, HTTP, and UDP clients and servers. As the name implies, it's based on the Netty framework.