警告: Can't transform property 'dispatchDirectory' from java.lang.String into com.bh.entity.DispatchDi

问题描述:在进行枚举类型转与Json之间的转换的时候报警告信息。 解决方法: 
Map<String, Object> classMap = new HashMap<String, Object>();
						<span style="color:#FF6600;"><strong>JSONUtils.getMorpherRegistry().registerMorpher(new   EnumMorpher(DispatchDirectory.class));</strong></span>
				classMap.put("dispatchDirectory", DispatchDirectory.class);
				......
				(Directory)JSONObject.toBean(jsonObj,Directory.class,classMap);

你可能感兴趣的:(enum,json,register,Morpher)