error 10

[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

blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

jQuery fileDownload로 구현된 파일다운로드 기능을 jQuery를 쓰지않고 axios를 사용도록 바꾸는 과정에서 에러가 발생했다. 1. 에러난 코드 controller (JAVA) @ResponseBody @RequestMapping(value = "/downloadExcel/", method = RequestMethod.POST) public void exportComponentFile(HttpServletResponse response, @RequestParam(value = "excelData") String excelData) { //response.setHeader("Access-Control-Allow-Origin", "*"); try { excelData = URLDecoder...

error 2023.05.25

form.submit / spring 전송 에러

form submit으로 spring controller에 요청을 보낼때 400에러가 발생함. "There was an unexpected error (type=Bad Request, status=400). Required String parameter 'parameter' is not present" 파라미터나 url을 잘 못 입력했을 때 나는 에러인데 동일한 코드로 요청을 보내는데 특정 데이터를 보낼 때 만 400에러가 났음. 데이터가 너무 길 경우 (data too long)에 400에러가 나는걸 발견함 해당 데이터(param1)를 controller에서 required = false로 주고 form으로 전송하면 다음 데이터(param2)가 없다는 에러가 남. 아예 form에서 전송을 안해야 con..

error 2022.12.13

chrome 106 drag and drop error

html draggalbe 속성을 가진 element를 drag and drop했을 때 다른 요소들이 사라지고 흰화면으로 보이는 에러발생했는데 chorme을 106으로 업데이트 한 후 발생했다는 걸 발견(105버전 이용시 에러발생x) When using Drag & Drop elements most other elements contained in absolute positioned elements disappear from screen. If I resize the window these elements reappear but will again disappear when begining to drag. 아래의 css 속성을 draggable 요소에 추가하여 해결함. 저는 transform 속성만 추가..

error 2022.10.13

_focusTabbable 에러

unable to get property'_focusTabbable'of undefined or null reference dialog popup을 이용할 때 나는 에러 1. $(this).dialog("close");로 닫을 때 알람창이나 다른 팝업이 떠있으면 this가 달라지기 때문에 직접 dialog창의 ID를 넣어줌 $("dialog").dialog("close") 2. close로 닫았을 때 에러가 나면 $("dialog").dialog("destroy")로 팝업자체를 삭제 이건 html에서 요소 자체를 지워주기 때문에 dialog를 오픈할 때 html에 자리만 만들어두고 append해줘야함 3. 일반적으로 팝업창의 버튼(Ok, Cancel)을 눌러 close할 때는 버튼 click 함수안서 d..

error 2022.07.23