-
Spring + boot + thymeleaf 네임스페이스 모음JAVA/Spring 2018. 5. 7. 21:30
thymeleaf 기본
xmlns:th="http://www.thymeleaf.org"
maven
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>시큐리티
xmlns:sec="http://www.thymeleaf.org/extras/spring-security"
maven ( 버전 주의 )
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-springsecurity4</artifactId>
<version>3.0.2.RELEASE</version>
</dependency>설정
/**
* Thymeleaf Spring security Dialect
*/
@Bean
public SpringSecurityDialect springSecurityDialect() {
return new SpringSecurityDialect();
}레이아웃 ( 설정은 따로 없는듯 )
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
maven
<dependency>
<groupId>nz.net.ultraq.thymeleaf</groupId>
<artifactId>thymeleaf-layout-dialect</artifactId>
<version>2.3.0</version>
</dependency>페이징 만들어주는(?) 라이브러리
xmlns:sd="http://www.thymeleaf.org/spring-data
maven
<dependency>
<groupId>io.github.jpenren</groupId>
<artifactId>thymeleaf-spring-data-dialect</artifactId>
<version>3.3.1</version>
</dependency>설정
/**
* Thymeleaf Data Dialect
*/
@Bean
public SpringDataDialect springTemplateEngine() {
return new SpringDataDialect();
}'JAVA > Spring' 카테고리의 다른 글
spring boot 어노테이션 Filter (0) 2018.05.12 리눅스 maven 설치 (0) 2018.05.09 jpa querydsl 표현식 (0) 2018.04.19 intellij + spring boot 2.0 + maven + jpa + querydsl 적용하기 (0) 2018.04.18 [ 펌 ] JPA page 인터페이스 (0) 2018.04.18