You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/09/16 10:31:28 UTC

[GitHub] [servicecomb-java-chassis] drngsl opened a new issue #1328: 【问】自定义过滤器注入Spring的配置

drngsl opened a new issue #1328: 【问】自定义过滤器注入Spring的配置
URL: https://github.com/apache/servicecomb-java-chassis/issues/1328
 
 
   请问:
   自定义HttpServerFilter后,怎么在filter中注入Spring的配置呢?
   
   比如:下面的redirectUrl如何使用application.yaml或者启动提供的args参数来初始化呢?
   
   谢谢!!!
   
   public class MyFilter implements HttpServerFilter {
       private String redirectUrl;
   
       @Override
       public int getOrder() {
           return 0;
       }
   
    @Override
       public Response afterReceiveRequest(Invocation invocation, HttpServletRequestEx requestEx) {}
   }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services