pom.xml配置了lombok,但还是出现如下问题: Cannot resolve method ‘builder()’ 问题的原因占时没有想到。 解决办法: 在IDEA的插件中下载lombok,解决了问题。