IDEA中"could not autowire,no beans of 'UserMapper' type found"的问题解决
**idea在自动装配时报错(“could not autowire,no beans of ‘UserMapper’ type found”),有两种解决办法。**先看错误方式UserMapper接口已经创建好,没有错误,但是提示不能装配!解决方法1将注解@Autowired 修改为@Resource,错误消失。解决方法2在声明userMapper接口时,添加注解@Compon...