I am new to the Spring boot. I have been practicing Spring Boot with the standalone application in which I used the main method. since the Main method is the entry point. Now I am going to work with a Web application.
Moreover, We don't need to use the main method in servlet, struct and spring MVC for the web application.
Is it really necessary to use the main method in a spring boot web application?
@SpringBootApplication
public class Example {
public static void main(String[] args) {
SpringApplication.run(Example.class, args);
}
}
Spring boot supports two modes of work:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With