.w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded' not supported]
var headers = {
'Content-Type': 'application/json'
mode: 'no-cors',
}
Axios.post('http://localhost:8080/registration', data, headers);
const options ={ // опции для запроса
headers : { // заголовки запроса
'Content-Type': 'application/json'
}
};
Axios.post('http://localhost:8080/registration', data, options);