what is x-Application-Context header?

前端 未结 1 864
小鲜肉
小鲜肉 2021-02-05 07:27

What is this response header (x-Application-Context) stands for? is it specific to Spring framework?

what does the below header means?

X-Application-Con         


        
1条回答
  •  情歌与酒
    2021-02-05 08:01

    Spring Boot ApplicationContextHeaderFilter does add this header. Class description:

    OncePerRequestFilter to add a X-Application-Context header that contains the ApplicationContext ID.

    AppliationContext ID is a name for the deployed application that this context belongs to.

    You can change the default behavior by setting management.add-application-context-header property to false.

    management.add-application-context-header=true # Add the "X-Application-Context" HTTP header in each response.
    

    Spring Boot resolved issue 1308.

    0 讨论(0)
提交回复
热议问题