Consider defining a bean of type 'com.*.*.mapper.*.*Mapper' in your configuration.

 

@Mapper 不能加载的问题
Consider defining a bean of type 'com.*.*.mapper.*.*Mapper' in your configuration.

 

添加依赖

<dependency>
            <groupId>org.mapstruct</groupId>
            <artifactId>mapstruct-processor</artifactId>
            <version>1.3.0.Final</version>
            <scope>provided</scope>
        </dependency>

 

posted @ 2019-10-17 17:47  天王星天  阅读(6397)  评论(0编辑  收藏  举报