Skipping MapperFactoryBean with name 'sysUserMapper' and 'com.buding.system.mapper.SysUserMapper' mapperInterface. Bean already defined with the same name!

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

posted @ 2019-02-17 15:11  GodricV  阅读(17057)  评论(0编辑  收藏  举报