반응형

2017-07-04 14:34:28.207  WARN 20716 --- [nio-8080-exec-8] .w.s.m.s.DefaultHandlerExceptionResolver : 

Failed to bind request element: org.springframework.beans.TypeMismatchException: 

Failed to convert value of type 'java.lang.String' to required type 'com.jejunet.framework.core.entities.Code'; 


nested exception is org.springframework.core.convert.ConversionFailedException: 

Failed to convert from type [java.lang.String] to type [com.jejunet.framework.core.entities.Code] for value 'TEST'; 


nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: 

Provided id of the wrong type for class com.jejunet.framework.core.entities.Code. Expected: 

class java.lang.Long, got class java.lang.String; nested exception is java.lang.IllegalArgumentException: 

Provided id of the wrong type for class com.jejunet.framework.core.entities.Code. 

Expected: class java.lang.Long, got class java.lang.String





Code 클래스에 code 속성이 있어

콘트롤러에서 Code formCode 로 받으면 바인딩이 안된다.

클래스 명과 같은 속성이 있으면 안되는거 같아. 

클래스명 바꿔서 처리 함.

반응형

+ Recent posts