How to set up filter chain in spring boot?

后端 未结 2 819
感情败类
感情败类 2021-02-13 22:03

I have come across spring-boot and intend to add a filter chain for incoming request.

Here is the Application:

package example.hello;

import org.springf         


        
2条回答
  •  星月不相逢
    2021-02-13 22:37

    Adding following line of code in GreetingFilter works

    filterChain.doFilter(servletRequest, servletResponse);
    

提交回复
热议问题