idea 出现Could not autowire. No beans of 'xxxxMapper' type found. 安装 Mybatis Plugin 插件

来源:互联网 发布:怎么查看网页源码 编辑:程序博客网 时间:2024/06/10 17:50

idea 出现Could not autowire. No beans of 'xxxxMapper' type found. less... (Ctrl+F1) Checks autowiring

是因为idea使用mybatis是要使用   Mybatis Plugin 插件这个是idea的通病吧,就知道没有完美的IDE 

是要安装插件。收费了,don't worry; 细心看下去 ,我花了好几 个小时,你可别   

耐心看下去哦,

(1).安装官方版mybatis plus插件,然后关闭IDEA   (百度)


(2).在C:\Windows\System32\drivers\etc目录下 的hosts 添加  

 127.0.0.1 www.codesmagic.com



(3). 记事本打开C:\Users\{USER}\.IntelliJIdea{VERSION}\config\options\mybatis.xml,


(4).

将 KEY 和 RESULT 对应的值填入, 保存 
KEY:
305c300d06092a864886f70d0101010500034b
003048024100878e6bea07d7052499419efe4ed4382f426dc5ca2d01140f896a6d0566526c6757ff591347d888bd032f94ce92609ce0cc349de0ba9043dc3163f9667438a14d0203010001

RESULT:
414834456369b9329793f0b42c6c0af67d00516c7ceb136ad221fa0355dc2cd611ed1bcd36b61d00ba7e587d253c1de145831cd0d65b891c9dc34430f9e69c59


打开idea,mybatis插件已经激活



M-wise



阅读全文
1 0