spring-cloud-gateway
spring-cloud-gateway copied to clipboard
config error: Reason: java.lang.IllegalArgumentException: 'name' must not be null
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2025-08-20T00:04:54.692+08:00 ERROR 16930 --- [trace-java-gw-demo] [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under 'spring.cloud.gateway.server.webflux.routes[0].filters' to java.util.List<org.springframework.cloud.gateway.filter.FilterDefinition>:
Reason: java.lang.IllegalArgumentException: 'name' must not be null
Action:
Update your application's configuration
Process finished with exit code 1
spring:
cloud:
gateway:
server:
webflux:
routes:
- id: user-service
uri: http://localhost:8081
predicates:
- Path=/gw/**
filters:
- AddRequestHeader=X-Request-Id, rpcid-${random.value}
- StripPrefix=1
when i write some config, start application.
help! thx