Spring Boot Microservices JUnit Test JWT Issue

I added this dependency before in order service.
<dependency>
  <groupId>org.springframework.security</groupId>
  <artifactId>spring-security-oauth2-resource-server</artifactId>
</dependency>

Then I run it, I got this issue. Caused by: java.lang.ClassNotFoundException: org.springframework.security.oauth2.jwt.Jwt$Builder

Here is the exact path : https://github.com/Rapter1990/microservicecoursedailybuffer/blob/main/orderservice/src/test/java/com/microservice/orderservice/controller/OrderControllerTest.java
GitHub
Spring Boot Microservice Example. Contribute to Rapter1990/microservicecoursedailybuffer development by creating an account on GitHub.
microservicecoursedailybuffer/OrderControllerTest.java at main · Ra...
Was this page helpful?