1, running in IDE
There are two ways to run directly in Eclipse and IDEA.
Jar package method: By default, Spring Boot embeds servers such as Tomcat and Jetty in the jar package, and needs to provide a main class with a main method. At this point, you can start the Spring Boot application by running this main method directly in the IDE.
War package mode: If your application is deployed as a war package, you need to configure the server in the IDE, then add your Spring Boot project to the server, and finally run the server.
Step 2 pack up and leave
When your Spring Boot is ready for testing or online, it needs to run as a jar package or a war package.
3, run with plug-ins
You can use Maven and Gradle plug-ins to run Spring Boot applications in the IDE or on the command line.
The characteristics of Spring Boot
1. You can build a project in a few seconds by using the Spring Project Guide page.
2. It is convenient to export various forms of services, such as REST API, WebSocket, Web, Streaming and Tasks.
3. Very concise security policy integration.
4. Support relational database and non-relational database.
5. Support runtime embedded containers, such as Tomcat and Jetty.
6, powerful development package, support for hot start.
7. Automatically manage dependencies.
8. With application monitoring.
9. Support various IEDs, such as IntelliJ IDEA and NetBeans.