[Springboot] thymeleaf-extras-springsecurity5 dependency 못 읽어오는 문제

2023. 2. 3. 21:06·JAVA/Application

오류

'dependencies.dependency.version' for org.thymeleaf.extras:thymeleaf-extras-springsecurity5:jar is missing.

또는 

Unresolved dependency: 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5:jar:unknown'

또는

org.thymeleaf.extras:thymeleaf-extras-springsecurity5:jar:unknown was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced

 

 


해결

 

springboot 3.0 이상을 사용하는 상황에서

dependency에 version 정보를 넣어주었더니 의존성 등록이 정상적으로 되었다. 

 

cf. 아마 springboot 2.7.0에서는 version을 명시하지 않아도 돌아가는 것 같다.

 

<dependency>
    <groupId>org.thymeleaf.extras</groupId>
    <artifactId>thymeleaf-extras-springsecurity5</artifactId>
    <version>3.0.4.RELEASE</version>   // <= version 추가해주었더니 잘 읽어옴
</dependency>

 


참고자료

 

∨ 아래 글을 보면, 스프링부트 3.0 이상의 dependency 설정에서는 위와 같이 <version> 정보를 넣어 쓰고있다.

∨ 반면 2.7.0 버전에서는 <version> 없이도 돌아가는 것 같다. (<= 실습 코드에서도 그러하다)

 

https://stackoverflow.com/questions/72677959/spring-thymeleaf-security-secauthentication-not-working

 

Spring thymeleaf security sec:authentication not working

I've searched a lot for this specific problem and currently no methods solving it worked for my project. I'm using spring-boot-starter security v.2.7.0 and thymeleaf-extras-springsecurity5. The pro...

stackoverflow.com

 

'JAVA > Application' 카테고리의 다른 글

[자바/스프링] 비즈니스 로직 층 설계  (0) 2023.08.12
[자바/스프링] 데이터 액세스 층 설계  (1) 2023.08.11
[JPA] Entity는 영속성 컨텍스트에 저장/조회한다!  (4) 2023.01.25
Springboot Mybatis 사용해보기 ─ xml 파일로 쿼리문 관리  (0) 2023.01.23
Spring MVC | Controller는 어떻게 요청을 처리하는 걸까? | Controller와 Servlet  (0) 2023.01.19
'JAVA/Application' 카테고리의 다른 글
  • [자바/스프링] 비즈니스 로직 층 설계
  • [자바/스프링] 데이터 액세스 층 설계
  • [JPA] Entity는 영속성 컨텍스트에 저장/조회한다!
  • Springboot Mybatis 사용해보기 ─ xml 파일로 쿼리문 관리
히어로맛쿠키
히어로맛쿠키
  • 히어로맛쿠키
    yeny_lab
    히어로맛쿠키
  • 전체
    오늘
    어제
    • 분류 전체보기 (387)
      • 미분류글 (30)
        • ㅇ (2)
      • JAVA (84)
        • Effective Java (1)
        • Application (21)
      • 컴퓨터구조 & OS (28)
      • 자료구조 + 알고리즘 (43)
      • Database (12)
      • 컴파일러 (10)
      • 수학 (33)
        • 미분방정식 (12)
      • 데이터분석과 머신러닝 (38)
      • 기타 (58)
      • yyeeennyy (25)
  • 최근 글

  • hELLO· Designed By정상우.v4.10.4
히어로맛쿠키
[Springboot] thymeleaf-extras-springsecurity5 dependency 못 읽어오는 문제

개인정보

  • 티스토리 홈
  • 포럼
  • 로그인
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.