전체 글

전체 글

    [Datatables] uncaught typeerror: cannot read property 'nodename' of null

    Datatables 적용된 테이블에 tfoot을 추가하였더니 아래와 같은 오류발생 uncaught typeerror: cannot read property 'nodename' of null thead의 컬럼 개수와 tfoot의 커럼 개수가 동일하지 않아 발생한 오류 출납일 구분 계정번호 계정명 적요 입금 출금 비고 합 계 thead의 컬럼은 9개인데, tfoot은 8개라서 tfoot에 컬럼 하나 추가해주니 제대로 나옴 출납일 구분 계정번호 계정명 적요 입금 출금 비고 합 계

    HttpURLConnection POST 통신

    HttpURLConnection POST 통신

    1. Form values 전달 @Test public void postTemplate() { String response = null; try { String urlPath = "https://webhook.site/{your_unique_url}"; URL url = new URL(urlPath); HttpURLConnection con = (HttpURLConnection) url.openConnection(); con.setRequestMethod("POST"); con.setDoOutput(true); String param = "param1=a"; param += "¶m2=b"; param += "¶m3=c"; param += "¶m4=d"; OutputStream os ..

    file 업로드 시 MultiValueDictKeyError

    MultiValueDictKeyError는 dict에 일치하는 key가 없는 경우 발생할 수 있는 문제다. request.FILES['file']로 데이터를 받아올 때 업로드된 파일이 있으면 dict에 file이 추가되어 제대로 작동되지만, 업로드된 파일이 없으면 dict에 file이 추가되지 않아 해당 오류가 발생한다. upload.html views.py model.file= request.FILES['file'] request.FILES['file']을 request.FILES.get('file')로 변경해주면 일치하는 key가 없을 때 None이 반환되도록 하여 MultiValueDictKeyError가 나는 것을 방지할 수 있다. 하지만 이렇게 처리할 경우 파일을 업로드하지 않는 경우 파일이 유..

    Windows10 ISO USB 만들기

    Windows10 ISO USB 만들기

    1. USB 준비(최소 8기가 이상) 2. MediaCreationTool 다운로드 3. MediaCreationTool exe파일 실행 4. 관련 통지 및 사용 조건 동의 5. 다른 PC용 설치 미디어 만들기 선택 6. 언어, 아키텍처 및 버전 선택 7. 미디어 선택 8. 9. 다운로드 진행 10. 11. 12.

    Error running 'spring':Unable to open debugger port (127.0.0.1:56487): java.net.SocketException "socket closed"

    Error running 'spring-erowm': Unable to open debugger port (127.0.0.1:56487): java.net.SocketException "socket closed" Error running 'spring-erowm': port out of range:-1 tomcat 설치 시 shutdown port 가 -1로 설정되어 생긴 문제 tomcat 설정파일 server.xml에서 shutdown port를 8005로 변경하면 해결된다. 출처 : https://hyunyikim.tistory.com/m/14?category=747716