VUE에서 검색을 해서 바로 데이터를 가져오는데 무한으로 가져오는 상황이 발생했다. 그러면서 이 에러가 뜨고 검색 결과는 제대로 나오지만 굉장히 버벅거리고 느려졌다. 문제의 코드부분은 이 부분이다. v-for에서 crews를 가져오는데 reverse를 해서 하나씩 뽑아온다. 이 crews는 어디서 가져오냐? computed: { ...mapState(["crews"]), ...mapState(["loginUser"]), }, vuex에 state에 있는 crews를 computed로 계산해서 변화가 생기면 계속 가져오게 만들었는데 검색할때마다 해당 조건에 맞는 crews가 바뀌고 그걸 또 reverse를 해버리니 처리하는데 문제가 생겼던 거다. 다른 커뮤니티에도 찾아보니 데이터를 바로 가져오지 말라고 해..
프로젝트를 진행하면서 유튜브url 정보를 이용해서 미리보기를 가져오는데 getEmbeddedVideo(url) { // 유튜브 URL에서 videoId 추출 const videoId = url.split("v=")[1]; // 임베드 코드 생성 return ``; }, 우선 이렇게 가져와서 이렇게 영상까지는 불러왔는데 OST https://www.youtube.com/youtubei/v1/log_event?alt=json&key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8 net::ERR_BLOCKED_BY_CLIENT 이렇게 에러가 계속 발생했다. 에러는 못참고 넘어가는 성격이라 인터넷을 찾아보니 일반적으로 크롬에 설치된 확장프로그램때문에 에러가 발생한다고 했다. 그래서 찾아..
vue에서 회원가입을 하면 스프링에서 받아서 DB에 저장하는 과정이었다. registUser() { if ( (this.user_id === "" || this.user_pass === "" || this.user_name === "" || this.user_age === "" || this.user_phone_number === "", this.user_athletic_career === "") ) { alert("모든 내용을 입력해주세요"); } else { const user = { user_id: this.user_id, user_pass: this.user_pass, user_name: this.user_name, user_age: this.user_age, user_phone_number: t..
홈버튼을 눌러서 홈으로 이동하고 다시 회원가입 버튼을 누르면 경로는 변경되지만 화면이 갱신되지 않는 오류가 발생했다. 새로고침을 해야 회원가입 폼이 나오는 상황이었다. 에러 내용은 다음과 같았다. Error in nextTick: "TypeError: Cannot read properties of undefined (reading '_wrapper')" 거의 1시간동안 이 에러를 고치다가 코드의 문제를 발견했다. 등록 랜덤 회원가입 코드인데 regist는 메서드를 만들어놨지만, getInfoFromAPI는 메서드를 따로 정의해두지 않았다. 해당 코드를 없애니 정상적으로 동작이 되었다. 어이없는 에러였다.
상품코드 상품이름 상품가격 수량 브랜드 설명 위 코드에서 price, quantity만 int값이고 나머지는 String으로 설정돼 있었다. 코드를 실행해서 전부 숫자를 넣어서 입력했더니. 400 에러 발생과 함께 price와 quantity의 타입이 맞지 않는다는 에러가 발생했다. WARN : org.springframework.web.servlet.mvc.support.DefaultHandlerExcep tionResolver - Resolved [org.springframework.web.method.annotation.ModelAttributeMethodProcessor$1: org.springframework.validation.BeanPropertyBindingResult: 2 errorsFi..
이클립스로 spring legacy project를 생성하는데 첫 setting이 지나고 plugin 에러가 발생했다. 에러의 내용은 아래와 같았다. Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apac..
Error creating bean with name 'movieController': Unsatisfied dependency expressed through method 'setMovieDao' parameter 0; 이런 코드가 발생했었다. 분명 마이바티스의 이라는 코드를 이용해서 dao경로에 있는 모든 인터페이스를 자동으로 빈으로 등록했지만 서버를 실행하면 계속 없다고만 떴다. @Autowired ResourceLoader resLoader; private MovieDao moviedao; private List list; @Autowired public void setMovieDao(MovieDao moviedao) { this.moviedao = moviedao; } . 이렇게 컨트롤러에 인터..