What is springboot auto configuration?

Alibaba cloud Q & A 2022-02-13 09:16:19 阅读数:41

springboot auto configuration

What is? SpringBoot Automatic configuration ?

Take the answer 1:

SpringBoot Automatic configuration of , refer to SpringBoot Some configuration classes will be automatically bean Sign up for ioc Containers , We can use it where we need it @autowired perhaps @resource Wait for annotations to use it . ​ “ Automatically ” The expression of is that we only need to introduce the package we want to use , We don't care about the configuration at all ,springboot These configurations are automatically injected bean, We use these directly bean that will do .

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