Create New Project---Spring Initializr--一路next,在Dependencies選擇自己所需的依賴就行,web項目勾選一個web
生成的項目與之前創建的項目一樣,快捷創建的項目目錄結構
resources文件夾中目錄結構
- static:保存所有的靜態資源; js css images;
- templates:保存所有的模板頁面;(Spring Boot默認jar包使用嵌入式的Tomcat,默認不支持JSP頁面);可以使用模板引擎(freemarker、thymeleaf);
- application.properties:Spring Boot應用的配置文件;可以修改一些默認設置;