Many spring boot developers always use @configuration, @EnableAutoConfiguration and @ComponentScan annotate their main class. Since these annotations are used so frequently (especially if you follow these best practices), Spring boot provides a convenient @springbootapplication choice.
@SpringBootApplication annotations are equivalent to using @Configuration, @EnableAutoConfiguration, and @ComponentScan with default properties. Same as @Configuration @EnableAutoConfiguration @ComponentScan
@SpringBootApplication Public classbootdoapplication { Public Static voidMain (string[] args) {Springapplication.run (bootdoapplication.class, args); System.out.println ("ヾ (? °?°?)??" Bootdo start successful ヾ (? °?°?)?? \ n "+" ___ _ ___ \ "+" |_ _ \ \ |_|_ _ `. \ n "+" | |_) | .--. .--. ' | | | | `. \\ .--. \ n "+" | __‘. / .‘ ' \ \ \\/. ' `\\ \\| | | | | |/. ' "\ \ \ \ \" + "_| |__) | | \\__. || \\__. || |, _| |_. '/| \\__. | \ n "+" |_______/'. __. __. ' \\__/|______. ' ‘.__.‘ "); }}
Using @springbootapplication annotations