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
658 stars 386 forks source link

Maven clean install failed #20

Closed nsridatta closed 3 years ago

nsridatta commented 3 years ago

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

Tarun-c commented 3 years ago

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