update httpClient and spring sample