언어(32)
-
[ Chrome ] 크롬 Cross Domain 무시하고 작업하기
테스트 중에 에러 나면 크롬 아이콘을 원하는 경로에 복사한 뒤 아래처럼 설정하고 다시 테스트 하면 오류가 사라진다. C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="복사한 아이콘 경로"
2019.11.25 -
[ Ajax ] JAVA Controller에서 json 형식으로 데이터 가져오기
Ajax 부분 $.ajax({ type: "POST", url: url, data: data, dataType: 'json', success: function(data){ data.키값; }, error: function(request, status, error){ alert(request.status + "#" + request.message + "#" + error); } }) Controller 부분 @RequestMapping(url) @ResponseBody public String functionName(...)throws Exception{ ... HashMap hashMap = new HashMap(); hashMap.put("키값", 값); return JSONObject.fromObje..
2019.10.28