引入依赖 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> idea添加插件支持 否则会有红杠杆 bean中引入注解 使用builder模式