Getting to know SpringBoot for the first time (3)

Use Spring Initializer to quickly create Spring Boot projects

1. IDEA: Use Spring Initializer to quickly create projects
IDEs support the use of Spring's project creation wizard to quickly create a Spring Boot project;
select the modules we need; the wizard will create a Spring Boot project online;
default generation The Spring Boot project;
- the main program has been generated, we only need our own logic


, - directory structure in the resources folder
  - static: save all static resources; js css images;
  - templates: save all template pages; (Spring Boot default jar package uses embedded Tomcat, default does not support JSP pages); yes Use a template engine (freemarker, thymeleaf);

  - application.properties: The configuration file of the Spring Boot application; some default settings can be modified;

For example: modify the default port number



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325902775&siteId=291194637