spring data MongoDB 重复依赖 Repositories

The bean ‘friendLinkMapper‘, defined in com.lyra.admin.mapper.FriendLinkMapper defined in @EnableMongoRepositories declared on AdminApplication, could not be registered. A bean with that name has already been defined in file [/home/lyra/IdeaProjects/imooc-news/news-admin/target/classes/com/lyra/admin/mapper/FriendLinkMapper.class] and overriding is disabled.

新建一个包 将repositories放入即可

spring data MongoDB 重复依赖 Repositories

上一篇:MySql查询当天、本周、本月、本季度、本年的数据


下一篇:[已解决]报错:sql server 返回结果出现中文乱码