MapStruct 报错 No property named "xxx" exists in source parameter(s). Did you mean "null" [ 技术杂谈 ]
九叶的小窝 文章 正文

九叶
{{nature("2022-04-01 09:27:10")}}更新1. 问题
使用MapStruct映射不同实体类属性的时候无法编译 提示报错
No property named "xxx" exists in source parameter(s). Did you mean "null"
2. 解决
根据官网的提示 如果 Lombok >= 1.18.16
则需要额外在编译检查里引入一个新的依赖 lombok-mapstruct-binding
成功启动!
{{nature('2021-12-07 15:29:00')}} {{format('2286')}}人已阅读
{{nature('2021-01-31 20:01:00')}} {{format('1069')}}人已阅读
{{nature('2020-12-11 21:17:00')}} {{format('989')}}人已阅读
{{nature('2021-04-22 15:16:00')}} {{format('983')}}人已阅读
目录
标签云
一言
评论 0
{{userInfo.data?.nickname}}
{{userInfo.data?.email}}