解决办法:
一:加入@MapperScan(value="com.ge.information.mapper")
@MapperScan(value="com.ge.information.mapper") public class InformationApplication { public static void main(String[] args) { SpringApplication.run(InformationApplication.class, args); } }
或者二:加入
@Mapper
@Mapper public interface UserMapper extends BaseMapper<UserEntity> {xxx}