加入mapstruct后出现 找不到符号 符号: 方法 setXX 的解决方法
Posted wintersoft
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了加入mapstruct后出现 找不到符号 符号: 方法 setXX 的解决方法相关的知识,希望对你有一定的参考价值。
加入lombok解决
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <includeSystemScope>true</includeSystemScope> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>${maven-compiler-plugin.version}</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> <annotationProcessorPaths> <path> <groupId>org.mapstruct</groupId> <artifactId>mapstruct-processor</artifactId> <version>${org.mapstruct.version}</version> </path> <path> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>${lombok.version}</version> </path> </annotationProcessorPaths> </configuration> </plugin> </plugins> </build>
以上是关于加入mapstruct后出现 找不到符号 符号: 方法 setXX 的解决方法的主要内容,如果未能解决你的问题,请参考以下文章