Java org.springframework.web.HttpMediaTypeNotAcceptableException:找不到可接受的表示法“;错误

Java org.springframework.web.HttpMediaTypeNotAcceptableException:找不到可接受的表示法“;错误,java,jquery,json,jsp,spring-mvc,Java,Jquery,Json,Jsp,Spring Mvc,我这样称呼JSON: $(function() { $("select#accountsubgroupid").change(function() { alert('admin URL ----'+adminUrl); $.getJSON("<%=request.getContextPath()%>/admin/jassg.htm?search=",

我这样称呼JSON:

$(function() {
                    $("select#accountsubgroupid").change(function() {
                        alert('admin URL ----'+adminUrl);
                        $.getJSON("<%=request.getContextPath()%>/admin/jassg.htm?search=",{accountSubGroupId: $(this).val(), ajax: 'true'}, function(accountSubGroup){                          
                           alert('success---'+accountSubGroup.code);
                        });
                    });
                });  

将以下请求放在映射中:

@RequestMapping(method = RequestMethod.GET, value = "/jassg.html", produces = "application/json")
@RequestMapping(method = RequestMethod.GET, value = "/jassg.html", produces = "application/json")