server.tomcat.remoteip.remote-ip-header="X-Forwarded-For" You can also try setting this in your application.properties.
server.tomcat.remoteip.remote-ip-header="X-Forwarded-For"