내가 컨트롤러는 이렇게 만들고


@RequestMapping("/testJson")

public String testJson(HttpSession httpSession, Model model) {


Date date = new Date();

DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG);

String formattedDate = dateFormat.format(date);

model.addAttribute("serverTime", formattedDate );

model.addAttribute("aaaa", "bbbb" );

model.addAttribute("configAlarmSound", "222");

return "json";

}


jsp 파일은 이렇게 만들었거든??


function bbb(){

$.ajax({

url : "testJson",

type : "post",

dataType : "json",

data : {

},

timeout: 5000,

success : function(data) {

if(data.error!=null) {

return;

}

alert(data);

}, error: function(xhr,status,error){

alert(error);

}

});

alert("${serverTime}");

}



구글링 하면서 본거만 보면 이거 분명 되야될것 같은데 


Not Found 라는 에러 뜨면서 안되더라


컨트롤러에서 return "json"; 하면 json.jsp 라는 파일을 찾아서 


넘기려고 하다가 없어서 에러나는거같은데


이거 어떻게해야됨???