关于@Mapper与@MapperScan

o.m.s.mapper.ClassPathMapperScanner      : Skipping MapperFactoryBean with name 'gggDao' and 'com.xxx.dao.gggDao' mapperInterface. Bean already defined with the same name!

这里是分别在mapper层填写了@mapper,在启动类中再一次用@mapperscan扫描了mapper层,需要去掉一个,这样就不会提醒重复报错

posted @ 2024-01-05 21:58  天启A  阅读(44)  评论(0)    收藏  举报