• FE에서 axios로 학생 및 교사 정보 조회 시 요청 URL이 **http://localhost:8080/api/v1/teacher/{tchrId}?tchrId=lsyT 처럼 {tchrId} 값이 중복으로 들어간다.**

  • axios가 200 ok 가 떠도 기능이 제대로 실행하지 않는 다면 back 쪽에서 어떻게 실행했는지 비교해서 수정가능하다.

    ex)

    2022-01-22 20:53:53.758 DEBUG 1188 --- [0.1-8080-exec-5] o.s.w.f.CommonsRequestLoggingFilter : After request [DELETE /api/v1/studyRoom/delete, client=127.0.0.1, headers=[x-forwarded-host:"localhost:8083", x-forwarded-proto:"http", x-forwarded-port:"8083", x-forwarded-for:"127.0.0.1", accept-language:"ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7", accept-encoding:"gzip, deflate, br", referer:"http://localhost:8083/tchr_lesson", sec-fetch-dest:"empty", sec-fetch-mode:"cors", sec-fetch-site:"same-origin", origin:"http://localhost:8083", sec-ch-ua-platform:""Windows"", user-agent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36", sec-ch-ua-mobile:"?0", accept:"application/json, text/plain, /", sec-ch-ua:"" Not;A Brand";v="99", "Google Chrome";v="97", "Chromium";v="97"", content-length:"49", connection:"close", host:"localhost:8080", Content-Type:"application/json;charset=UTF-8"], payload={"payload":{"studyName":"qqq","tchrId":"eeee12"}}]

    payload={"payload":{"studyName":"qqq","tchrId":"eeee12"}}

    2022-01-22 20:57:21.460 DEBUG 1188 --- [0.1-8080-exec-9] o.s.w.f.CommonsRequestLoggingFilter : After request [DELETE /api/v1/studyRoom/delete, client=127.0.0.1, headers=[x-forwarded-host:"localhost:8083", x-forwarded-proto:"http", x-forwarded-port:"8083", x-forwarded-for:"127.0.0.1", accept-language:"ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7", accept-encoding:"gzip, deflate, br", referer:"http://localhost:8083/tchr_lesson", sec-fetch-dest:"empty", sec-fetch-mode:"cors", sec-fetch-site:"same-origin", origin:"http://localhost:8083", sec-ch-ua-platform:""Windows"", user-agent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36", sec-ch-ua-mobile:"?0", accept:"application/json, text/plain, /", sec-ch-ua:"" Not;A Brand";v="99", "Google Chrome";v="97", "Chromium";v="97"", content-length:"37", connection:"close", host:"localhost:8080", Content-Type:"application/json;charset=UTF-8"], payload={"studyName":"qqq","tchrId":"eeee12"}]

    payload={"studyName":"qqq","tchrId":"eeee12"}

  • v

  • FE 에서 값이 안 바뀔때 동기화 오류가 있을 수 있음 기존 this.변수 형식에서 state.변수로 해결 안되면 .then안에 값을 넣는 것으로 다른 해결책이 있을 수 있음