Spring Boot Microservice Issues

Hi, I think anyone can help me.
1) I get 403 when I login and send any request in postman through API Gateway
2 ) I cannot handle with OrderControllerTest in order service.
Here is the question : https://stackoverflow.com/questions/74449956/spring-boot-microservice-junit-test-how-to-write-a-test-method-with-adding-the
Here is the repo : https://github.com/Rapter1990/microservicecoursedailybuffer
To run the app,
1 ) Run Service Registery (Eureka Server)
2 ) Run config server
3 ) Run zipkin and redis through these commands shown below on docker
docker run -d -p 9411:9411 openzipkin/zipkin
docker run -d --name redis -p 6379:6379 redis
4 ) Run api gateway
5 ) Run other services
Stack Overflow
I just want to add a @PreAuthorize("hasAuthority('ROLE_ADMIN')") and @PreAuthorize("hasAuthority('ROLE_USER')") in the methods of order controller and I also revise the controller
Spring Boot Microservice JUnit Test - How to write a test method wi...
GitHub
Spring Boot Microservice Example. Contribute to Rapter1990/microservicecoursedailybuffer development by creating an account on GitHub.
GitHub - Rapter1990/microservicecoursedailybuffer: Spring Boot Micr...
Was this page helpful?