---
# System prepended metadata

title: Spring Boot
tags: [spring boot, spring data, spring security, thymeleaf, logback]

---

Spring Boot
===
###### tags: `spring boot`, `spring security`, `thymeleaf`, `logback`, `spring data`
***
## logback
    SpringBoot 內建
    
## Spring data
1. dao層繼承JpaRepository
2. 一般SELECT
3. 單條件查詢
    * https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.query-methods.details
5. JPQL
    * 使用JPQL時SQL語句必須使用Model名稱不可使用Table Name


## Spring Security
1. 自訂登入頁
2. 自訂登入認證
3. 權限控管

## thymeleaf
1. Layout
2. 配合Spring Security權限控管
