감자의 개발공부 일지

[Springboot JPA] For artifact {org.thymeleaf.extras:thymeleaf-extras-springsecurity5:null:jar}: The version cannot be empty. 본문

JAVA/Spring/Spring JPA

[Springboot JPA] For artifact {org.thymeleaf.extras:thymeleaf-extras-springsecurity5:null:jar}: The version cannot be empty.

Elie_J 2024. 3. 19. 23:07
반응형

Springboot 공부를 진행하던 도중

 

<dependency>
	<groupId>org.thymeleaf.extras</groupId>
	<artifactId>thymeleaf-extras-springsecurity5</artifactId>
</dependency>

 

다음과 같이 pom.xml 에 작성했을때 

 

다음과 같은 에러가 발생했다.

 

구글링을 해본 결과

 

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

dependency에 version 정보를 넣어줘야 의존성 등록이 정상적으로 된다고 한다!

 

기존 자료에는 version명시하지 않는걸 보니

spirngboot 3.0이상 부터 변경되는거 아닐까...?

 

 

<dependency>
	<groupId>org.thymeleaf.extras</groupId>
	<artifactId>thymeleaf-extras-springsecurity5</artifactId>
	<version>3.0.4.RELEASE</version>
</dependency>

 

다음과 같이 version정보를 추가해주고

Load Maven Changes 처리를 해줬더니

오류 없이 정상 작동한다!! 문제 해결! 😍

 

 

 

📖 참고자료 : https://stackoverflow.com/questions/72677959/spring-thymeleaf-security-secauthentication-not-working

 

 

 

반응형