ibatis의 결과가 java.util.Map 일 경우 Date 컬럼이 java.sql.Date로 처리된다. 그래서 데이터 변환에 java.sql.Date도 포함 시킨다.
This commit is contained in:
@@ -69,6 +69,7 @@ public abstract class NexacroConverterHelper {
|
||||
nonPrimitiveTypeMap.put(String.class, String.class);
|
||||
nonPrimitiveTypeMap.put(BigDecimal.class, BigDecimal.class);
|
||||
nonPrimitiveTypeMap.put(Date.class, Date.class);
|
||||
nonPrimitiveTypeMap.put(java.sql.Date.class, java.sql.Date.class); // used java.util.map in ibatis
|
||||
|
||||
Set<Class<?>> keySet = primitiveTypeWrapperMap.keySet();
|
||||
for(Class<?> clazz: keySet) {
|
||||
|
||||
@@ -145,7 +145,7 @@ public class NexacroHandlerMethodReturnValueHandler implements HandlerMethodRetu
|
||||
responseView = getView();
|
||||
}
|
||||
} catch(Exception e) {
|
||||
logger.error("Error handling return value. value"+returnValue+", e="+e +", message="+e.getMessage());
|
||||
logger.error("Error handling return value. value"+returnValue+", e="+e +", message="+e.getMessage(), e);
|
||||
throw e;
|
||||
} finally {
|
||||
sw.stop();
|
||||
|
||||
Reference in New Issue
Block a user