title: How can I set an attribute in SpringGateway ServerWebExchange
body: <p>I set an attribute in spring gateway request by &quot;exchange.getAttributes().put(&quot;auth_user&quot;, authUser);&quot;</p>
  <pre><code>exchange.getAttributes().put(&quot;auth_user&quot;, authUser);
  </code></pre>
  <p>and then in another microservice interface, I want to get the attribute by &quot;@RequestAttribute(&quot;auth_user&quot;)&quot;</p>
  <pre><code>@PostMapping(&quot;/get&quot;)
      public HyResponse&lt;OrderDto&gt; getOrder(@RequestAttribute(&quot;auth_user&quot;) AuthenticationUser authUser,
                                           @Valid @RequestBody GetOrderRequest request, BindingResult bindingResult) {
     ...
  }
  </code></pre>
  <p>But it doesn't work, the error message is &quot;Missing request attribute 'auth_user' of type AuthenticationUser&quot;.
  AuthenticationUser is a custom class and I want to easily get it in every interface witch need authuser info.</p>