# [Spring Boot] 筆記 * `pom.xml`:專案中的Maven依賴,只需填寫依賴名稱配置即可引入,不需要另外去招相關jar包。 * `application.properties`: 設定檔。 * `controller`:用來編寫控制器,主要負責處理請求以及檢視模板(如:Thymeleaf)繫結。 * `static`:用於存放靜態資源,如:html、JavaScript、css以及圖片等。 * `templates`:用來存放模板引擎Thymeleaf(本質依然是.html檔案)。 ```=Java @ModelAttribute("識別字串") @ModelAttribute CustomerBean bean = new CustomerBean(); model.addAttribute("識別字串", 屬性物件); model.addAttribute(屬性物件); //沒寫識別字串的話就是預設值 List<CustomerBean> customers = new ArrayList<>(); model.addAttribute("beans", customers); model.addAttribute(customers); customerBeanList ```