본문 바로가기

Spring/Problems9

Failed to convert value of type 'java.lang.String' to required type 'java.util.Date' [Error]Failed to convert value of type 'java.lang.String' to required type 'java.util.Date' : Date 타입을 (jsp페이지에서) 파라미터로 받아올때 @RequestMapping(value="/fetch" , method=RequestMethod.GET) public @ResponseBody String fetchResult(@RequestParam("from") @DateTimeFormat(pattern="yyyy-MM-dd") Date fromDate) { //Content goes here }Yes, it's simple. Just add the DateTimeFormat annotation. 출처 : https://stack.. 2019. 8. 19.
No qualifying bean of type ~ [Error] No qualifying bean of type ~ >>빈으로 등록되지 않은 객체를 주입하려할 때 발생하는 에러 Error creating bean with name 'chartController': Unsatisfied dependency expressed through field 'dto'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.example.diary.model.chart.dto.ChartDTO' available: expected at least 1 bean which qualifies as autowire can.. 2019. 8. 19.
[Error]스프링 프로젝트명에 빨간 엑스박스가 뜨는 경우 자바파일이나 코드 파일에는 에러가 없는데 Spring 프로젝트명에만 빨간색 x 박스가 뜨는 경우 프로젝트 우클릭 - Properties - Java Compiler - Project Facets 자바버전 pom설정과 일치하는지 확인 2019. 7. 22.
[Error] must override a superclass method [Error] : must override a superclass method 다른 환경에서 작성한 프로젝트 임포트시 발생 : 임포트하였지만 JDK와 프로젝트 작성 당시 환경설정 버전이 일치하지 않아 발생 Window - Preference - Java - Compiler > Configure Project Specific Settings... Use compilence from execution environment 'J2SE-1.5' on the 'Java Build Path' 체크 풀고 버전 설정 버전 설정이 맞게 돼있어도 에러나는 경우가 있으니 다시 apply해본다. 2019. 6. 23.