본문 바로가기
오류노트

스프링 시큐리티 thymeleaf에서 sec:authentication이 안될때

by 어컴띵 2021. 4. 3.

build.gradle에

compile('org.springframework.boot:spring-boot-starter-thymeleaf')

추가한다음 springsecurity를 사용할수 있게 extra도 추가해야한다.

// https://mvnrepository.com/artifact/org.thymeleaf.extras/thymeleaf-extras-springsecurity5
    implementation group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-springsecurity5', version: '3.0.4.RELEASE'