springboot 2.0 통합 thymeleaf

1080 단어 SpringBoot
SpringBoot 2.0 에서 thymeleaf 를 통합 하면 thymeleaf 3.0 버 전 을 자동 으로 통합 합 니 다.thymeleaf 버 전 을 바 꿀 필요 가 없습니다.pom.xml 설정 은 다음 과 같 습 니 다.

        
        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-starter-thymeleafartifactId>
        dependency>

thymeleaf 는 캐 시 를 자동 으로 사용 하기 때문에 개발 단계 에서 캐 시 를 금지 해 야 합 니 다.application.yml 설정 은 다음 과 같 습 니 다.
spring
  thymeleaf:
    cache: false

이어서 template 에 thymeleaf 를 쓸 수 있 습 니 다.

좋은 웹페이지 즐겨찾기