error 5

[ajax] Resolved [org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON

서버 측 에러 Resolved [org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: Class `com.deom.model.FileData` not subtype of `java.util.Map`; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Class `com.deom .model.FileData` not subtype of `java.util.Map` (through reference chain: java.util.HashMap["fileList"]->java.util.ArrayList[0])] 클라이언트 측..

error 2023.09.26

[MyBatis] BindingException@1300 "org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.demo.dao.FileMapper.getData"

BindingException@1300 "org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.demo.dao.FileMapper.getData" 이 오류는 MyBatis에서 SQL 쿼리나 매퍼 파일에 대한 문제가 있을 때 발생합니다. 에러 메시지를 자세히 살펴보면 com.demo.dao.FileMapper.getData라는 매핑된 문장(statement)을 찾을 수 없다는 내용입니다. 이 오류를 해결하기 위해 다음 몇 가지 단계를 따를 수 있습니다: mapper.xml에 해당 문장이 정의되어 있었지만 에러가 발생했습니다. //SELECT ~ databaseId를 제거 했을 때 정상적으로 동작했습니다. da..

error 2023.09.25

[spring] Field required a bean of type that could not be found.

project에서 특정 bean을 찾지 못하는 에러 Description: Field loginRepository in com.example.myproject.service.LoginService required a bean of type 'com.example.myproject.repository.LoginRepository' that could not be found. Action: Consider defining a bean of type 'com.example.myproject.repository.LoginRepository' in your configuration. 스프링은 컴포넌트 스캔을 통해 의존 관계를 주입해준다. @Service, @Repository, @Controller 등의 어노테이..

error 2023.08.30

[Vue3] TypeError: Cannot read property 'insertBefore' of null

https://sumni.tistory.com/105 [Vue] 컴포넌트 동적 생성 (agGrid.vue) 그림판 같은 툴에서 요소를 화면에 동적으로 생성하는 기능이 필요한데 외부 라이브러리를 쓰는 AgGrid인 경우 vue의 컴포넌트로 등록되어 있어서 일반 요소와 다른 생성 로직이 필요했습니다. 1. sumni.tistory.com 위의 코드를 실행하던 중 TypeError: Cannot read property 'insertBefore' of null 이런 에러가 발생하였다. 검색 결과 1. 캐시문제 캐시를 비우거나 시크릿 창 열기. 저는 이렇게 했을 때 해결되지 않았습니다. 2. html 템플릿에 초기화 되지 않은 데이터 v-if="!!data"를 이용 v-if="!!data"는 Vue.js의 조건..

Frontend/vue3 2023.03.31