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; } . 이렇게 컨트롤러에 인터..