分类 Java 下的文章

使用MapStruct时编译正常,但build时提示如下错误

Unknown property "xxx" in result type xxx. Did you mean "null"?

解决方案:
添加lombok-mapstruct-binding的赖

 <!-- mapStruct-lombok -->
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok-mapstruct-binding</artifactId>
            <version>0.2.0</version>
            <scope>provided</scope>
        </dependency>

任意公共方法: execution(public * *(..))

名字以set开头的任意方法: execution(* set*(..))

UserService接口定义的任意方法: execution(* com.test.service.UserService.*(..))

service包中定义的任意方法: execution(* com.test.service.*.(..))

service包中定义的任意方法(包括子包): exepution(* com.test.service..*.*(..))

包含2个String参数的任意方法: execution(* *(String,String))

只有1个Serializable参数的任意方法: args(java.io.Serializable)

service包中的任意方法: within(com.test.service.*)

service包中的任意方法(包括子包): within(com.test.service..*)

带有自定义注解(Hehe)的方法: @annotation (com.test.aop.Hehe)

您是第 67946 位访客