728x90
타임리프
-
spring security + thymeleaf 기능? 적용?공부/SpringBoot & Spring 2022. 6. 24. 15:14
build.gradle에 implementation 'org.springframework.boot:spring-boot-starter-security' /* security */ implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5' 의존성 추가 하고 thymeleaf 사용하는 방법은 아래와 같다. 아 참고로 xmlns:sec="http://www.thymeleaf.org/extras/spring-security" 이 부분도 html에 추가 해줘야 된다! 로그인 로그아웃 ROLE_ADMIN 권한이 있습니다. ROLE_SUB_ADMIN 권한이 있습니다. ROLE_USER 권한이 있습니다. ROLE_ADMIN 혹은 ROLE_SUB_ADM..