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>
<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
microservicecoursedailybuffer/OrderControllerTest.java at main · Ra...
Spring Boot Microservice Example. Contribute to Rapter1990/microservicecoursedailybuffer development by creating an account on GitHub.
1 Reply
JavaBot
JavaBot3y ago
Hey, @direct_x_34! Please remember to /close this post once your question has been answered!
Want results from more Discord servers?
Add your server