Skipping MapperFactoryBean with name 'sysUserMapper' and 'com.buding.system.mapper.SysUserMapper' ma...

前几天整体看了一下SpringBoot的简介,觉得看不如自己动手做,于是动手做一个简单的用户管理。启动的时候遇到了Skipping MapperFactoryBean with name 'sysUserMapper' and 'com.buding.system.mapper.SysUserMapper' mapperInterface. Bean already defined with the same name!。警告的意思,是命名与类库中的名字一样了,对于这个警告很是不解。翻了资料也没找到,后来发现配置文件中配置了映射文件目录,而我的entity同时也加了Mapper注解,去掉这个注解,这个警告就消失了。以此记录一下

转载于:https://www.cnblogs.com/Godric/p/10391240.html

你可能感兴趣的:(Skipping MapperFactoryBean with name 'sysUserMapper' and 'com.buding.system.mapper.SysUserMapper' ma...)