'java.lang.NoClassDefFoundError: org/springframework/util/MultiValueMap

I am using Spring-core 3.2 jar but I am getting error as

"java.lang.NoClassDefFoundError: org/springframework/util/MultiValueMap".

MultiValueMap<String, String> formData = new LinkedMultiValueMap<String, String>(); 
formData.add("xxx","xxxx");
formData.add("yyy","yyy");                      
formData.add("r","5");
formData.add("d","0");

I need to pass this data to HTTP post but I am getting above error. I have imported below Jars:

import org.springframework.http.converter.FormHttpMessageConverter;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;


Solution 1:[1]

try dependency

org.springframework spring-web 5.3.10

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Licaon92