목록Error log (16)
jeongwon
오류 상황 1. View 단의 로 들어온 String 을 DTO의 Date 타입에 넣을 수 없다. 해결: DTO 로 바로 받지 않고 String 으로 받은 후 변환 ... SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); dto.setStart_date(format.parse(startDate)); dto.setEnd_date(format.parse(endDate)); 오류 상황2. DB에서 받아온 Date 타입을 DTO 의 util.Date 타입 으로 받은 후 View 단의
오류 메시지 : Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='code', mode=IN, javaType=class java.lang.Object, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.Ty..
오류: 브라우저 클라이언트 오류로서 인지된 어떤 문제로 인하여, 서버가 해당 요청을 처리할 수 없거나, 처리하지 않을 것입니다. (예: 잘못된 요청 문법, 유효하지 않은 요청 메시지 framing, 또는 신뢰할 수 없는 요청 라우팅). 콘솔 org.springframework.validation.BeanPropertyBindingResult: 2 errorsField error in object 'exhibitionDTO' on field 'end_date': rejected value [2022-12-30]; codes [typeMismatch.exhibitionDTO.end_date,typeMismatch.java.util.Date,typeMismatch]; arguments [org.springfr..

오류: CKEditor 에서 서버 전송 후 이미지 미리보기 즉 이미지 파일 불러오기가 되지 않는 문제 해결: 경로 출력(이 경로를 찾아 미리보기가 출력됨) fileURL 수정 전: String fileUrl=request.getContextPath()+"/images/"+fileName; 후: String fileUrl=request.getContextPath()+"/resources/images/"+fileName; CKUploadController.java package com.ranzo.power.controller.admin; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io..
오류: javax.el.PropertyNotFoundException: [] 특성이 [~.DTO] 유형에 없습니다. 상황: DTO 를 list 로 받으려 함. 해결: EL 표현식 ${ } 내 변수명 표기 오류 수정.
값의 입력 여부를 확인 후 미 입력시 alert() 를 통해 메시지를 띄울 목적. alert() 후 새로고침되어 앞서 입력한 내용이 지워진다면, submit이 된다는 것. 해결: 태그가 을 포함하고 있었음. 태그 바깥으로 이동.
문제: 서블릿 쪽으로 값이 넘어오지 않음 (값의 체크는 input의 name 값이 null이 아니면서 on일 때로 설정. 특별한 값을 설정해두지 않았을 때, 체크시 기본값은 on임) 값을 찍었을 때 null은 아님 해결: jsp 의 input 태그 내 value 값이 value="" 로 설정되어 있음. 값 속성 자체를 지움.