IDEA提供Spring Initializer用来快速创建的Spring Boot项目,其特点为:
- 主程序已经生成,只需编写自己的逻辑;
- resources文件夹目录结构:
- static(保存所有的静态资源):js css images;
- templates(保存所有的模板页面):Spring Boot默认jar包使用嵌入式的Tomcat, 默认不支持jsp页面,所以可以使用模板引擎(freemarker、thymeleaf);
- application.properties(Spring Boot应用的配置文件):可以修改一些默认的设置,如tomcat端口等。