ma.glasnost.orika.MappingException:遇到枚举到对象的映射(反之亦然)
ma.glasnost.orika.MappingException:遇到枚举到对象的映射(反之亦然); sourceType = AccountPlan,destinationType = Plan 在ma.glasnost.orika.impl.generator.specification.UnmappableEnum.generateMappingCode(UnmappableEnum.java:41)〜[orika-core-1.5.0.jar:na] 在ma.glasnost.orika.impl.generator.SourceCodeContext.mapFields(SourceCodeContext.java:778)〜[orika-core-1.5.0.jar:na]
return accountRepository.findById(id)
.map(account -> mapper.map(account, AccountDetail.class))
.orElseThrow(() -> new ResourceNotFound("Account not found Id: " + id));