08-02-2023, 11:13 AM
I also encounter this error while using following with a `PATCH` request:
```java
public Order markOrderAsPayed(@RequestBody final MultiValueMap<String, String> values) {
...
}
```
The MultiValueMap is from `org.springframework.util`. Changing the Map to `Map<String, String>` resolved the problem for me.
Sorry, but I can't give an explanation why.
```java
public Order markOrderAsPayed(@RequestBody final MultiValueMap<String, String> values) {
...
}
```
The MultiValueMap is from `org.springframework.util`. Changing the Map to `Map<String, String>` resolved the problem for me.
Sorry, but I can't give an explanation why.