Created
December 31, 2020 07:57
-
-
Save sandipchitale/fcaa01ab8d908a093e8876029481ddbf to your computer and use it in GitHub Desktop.
Build URI compoents from current request considering4 x-forwarded-* headers #springboot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UriComponents uriComponents = UriComponentsBuilder.fromHttpRequest( | |
new ServletServerHttpRequest(((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest())).build(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment