SaiUpadhyayula / spring-reddit-clone

Reddit clone built using Spring Boot, Spring Security with JWT Authentication, Spring Data JPA with MySQL, Spring MVC. The frontend is built using Angular - You can find the frontend source code here - https://github.com/SaiUpadhyayula/angular-reddit-clone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maven clean install failed

nsridatta opened this issue · comments

Compilation Errors:
cannot find symbol
symbol: static parserBuilder
location: class io.jsonwebtoken.Jwts
/src/main/java/com/programming/techie/springredditclone/security/JwtProvider.java:[18,1]

After analyzing, I found that the below import in the JwtProvider Class is not recognizing
"import static io.jsonwebtoken.Jwts.parserBuilder;"

Although have used your same pom.xml file in my project.

Thanks

Try to change the JSON web token version in the pom.xml file.

The same problem happened to me but when I change my JSON web token dependency version. Then It works fine.

Reference

io.jsonwebtoken jjwt-api 0.11.2
io.jsonwebtoken jjwt-impl 0.11.2 runtime
io.jsonwebtoken jjwt-jackson 0.11.2 runtime