Describe the bug Ampersand does not encode in POST request.
spring cloud openfeign version: 2.1.5.RELEASE openfeign-core version: 10.4.0 Sample
@FeignClient(name = "localapp")
public interface TestClient {
@RequestMapping(method = RequestMethod.GET, value = "/hello")
String getHello();
@PostMapping(value = "/PostWithPostWithAmpersandWebClient")
String getPassword(@RequestParam("userName") String userName,
@RequestParam("password") String password);
}
@Test
public void testPassword() {
final String password = "!@#$%^&*()";
String hello = this.testClient.getPassword("foo", password);
assertThat(hello).isEqualTo("foo:" + password);
}
expect !@#$%^&*() but !@#$%^