before using Spring, the interface has multiple implementation classes and uses xml to configure bean, so it is convenient to switch
. But it seems that SpringBoot recommends creating a new bunch of @ Configuration classes. What are the advantages of configuring Bean
in @ Bean way? Isn"t it troublesome to switch?