The alias '*' is already mapped to the value '*'.

Caused by: org.apache.ibatis.type.TypeException: The alias 'BevaContentAndAlbumShareModel' is already mapped to the value 'com.giska.resource.domain.beva.BevaContentAndAlbumShareModel'.

1、springboot 项目
2、这个BevaContentAndAlbumShareModel类指定定义了一下还没有用到
3、没有用别名
4、配置文件中配置了

 #mybatis实体,映射文件
mybatis.type-aliases-package=com.giska.resource.domain
mybatis.mapper-locations=classpath:mapper/*Mapper.xml

启动类中

 @SpringBootApplication()
@MapperScan("com.giska.resource.mapper")

mapper文件只有一个并且与这个实体无关

mybatis.type-aliases-package=com.giska.resource.domain 你的package 应该是接口包 路径

例如我

mybatis:
mapperLocations: classpath:/mapper/*.xml
typeAliasesPackage: cn.momosv.hos.dao

mapperScanPackage: cn.momosv.hos.dao
configLocation: classpath:/mybatis-config.xml

@MapperScan("cn.momosv.hos.dao") //扫描的是java接口包,不是xml文件