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注解,去掉這個注解,這個警告就消失了。以此記錄一下


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM