当前位置: 代码迷 >> 综合 >> java.lang.IllegalArgumentException: Unable to find GatewayFilterFactory with name ReadBodyData
  详细解决方案

java.lang.IllegalArgumentException: Unable to find GatewayFilterFactory with name ReadBodyData

热度:80   发布时间:2023-09-19 18:35:05.0

记录一次测试环境的问题:

将springcloudgateway的过滤器删掉了一个,然后报错了,springcloudgateway的配置文件中有这么个过滤器找不到了

at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:333)
java.lang.IllegalArgumentException: Unable to find GatewayFilterFactory with name ReadBodyData

spring:
  cloud:
    gateway:
      routes:

       - id: micro-opapi-server
        uri: lb://micro-opapi-server
        predicates:
        - Path=//api/**
        filters:
        - StripPrefix=1
        - OpApiAuth
        - ReadBodyData