Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@quaff
Copy link
Contributor

@quaff quaff commented Jun 16, 2023

For

@GetMapping
public Paged<User> list(int page, int size, @QueryMap User user);

now we can use

Paged<User> paged = userClient.list(1, 10, null);

instead of

Paged<User> paged = userClient.list(1, 10, new User()); // query map will include primitive type default values which is unexpected

For
```java
@GetMapping
public Paged<User> list(int page, int size, @QueryMap User user);
```
now we can use
```java
Paged<User> paged = userClient.list(1, 10, null);
```
instead of
```java
Paged<User> paged = userClient.list(1, 10, new User()); // query map will include primitive type default values which is unexpected
```
@quaff
Copy link
Contributor Author

quaff commented Jun 16, 2023

@velo Please review this one since you close #1463.

@velo velo merged commit c435151 into OpenFeign:master Jun 19, 2023
velo pushed a commit that referenced this pull request Oct 7, 2024
For
```java
@GetMapping
public Paged<User> list(int page, int size, @QueryMap User user);
```
now we can use
```java
Paged<User> paged = userClient.list(1, 10, null);
```
instead of
```java
Paged<User> paged = userClient.list(1, 10, new User()); // query map will include primitive type default values which is unexpected
```
velo pushed a commit that referenced this pull request Oct 8, 2024
For
```java
@GetMapping
public Paged<User> list(int page, int size, @QueryMap User user);
```
now we can use
```java
Paged<User> paged = userClient.list(1, 10, null);
```
instead of
```java
Paged<User> paged = userClient.list(1, 10, new User()); // query map will include primitive type default values which is unexpected
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants