错误1:
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate (default-cli) on project …: configfile …\mybatis-generator.xml does not exist
解决:
porm.xml中的xml文件位置设置不对
错误2:
生成不了Mapper.xml文件
解决:
Springboot中的application.properties中映射文件位置没有配置
错误3:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘app’: Unsatisfied dependency expressed through field adminDOMapper’;
解决:
mybatis-generator多次生成mapper文件,导致其中ResultMap配置重复,删掉mapper.xml中重复的文件