why i am getting this error in Spring mvc (Invalid mime type "json": does not contain '/')? : Getting Below error :

EVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Invocation of init method failed; nested exception is org.springframework.http.InvalidMediaTypeException: Invalid mime type "json": does not contain '/'
	

```
<%@page import="org.json.JSONObject"%>
<%@ page language="java" contentType="application/json charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>Welcome</h1>

<a href="./getRegister">Register</a>
<a href="./delete?id=1">Delete</a>

<%
	JSONObject obj = new JSONObject();
	obj.put("id", "1");
	obj.put("name", "ABC");
%>

<form action="./jsonreq" method="post">
	<input type="hidden" name="obj" id="obj" value="<%=obj%>">
	<input type="submit" value="Submit"/>
</form>
</body>
</html>
```

2)Controller:
```
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.springhibernate.bean.Employee;
import com.springhibernate.service.EmployeeService;

@Controller
public class RegistrationController {

	 
	@RequestMapping(path="/jsonreq", method=RequestMethod.POST, consumes="json")
	public @ResponseBody Employee json(@RequestBody Employee obj) 
	{
		return obj;
	}
	
}

```



EVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Invocation of init method failed; nested exception is org.springframework.http.InvalidMediaTypeException: Invalid mime type "json": does not contain '/'