This repository is no longer maintained. Please visit the following link for the latest version of the project.
linkοΌ https://github.com/cyjdgithub/spring-cloud-microservice.git
- Custom assertion:
VipRoutePredicateFactory, judge VIP user routing permissions through query param - Custom filter:
OnceTokenGatewayFilterFactory, support one-time token verification (anti-duplicate request) - Global log filter: record request URI, response time and other information
- Support route configuration split (
application-route.yml)
- Can integrate Nacos / Eureka as a registration center, support automatic service registration and consumption
- Gateway uses the service name as
lb://service-nameto automatically load balance forwarding requests
- Call
product-servicethrough Feign inorder-service - Support Feign fuse mechanism (can be integrated with Sentinel)
Java17+ & Maven
- Start nacos (or Eureka)
- Start product-service
- Start order-service
- Start gateway