问题:
自动注入数据过程中,出现的Could not autowire. No beans of "UserMapper' type found.问题。
原因:
idea具有检测功能,接口不能直接创建bean的,需要用动态代理技术来解决。
解决:
1.点击file,选择setting
2.搜索inspections,找到Spring
3.找到Spring子目录下的Springcore
4.在Springcore的子目录下找到code
5.把seyerity选项改成警告
问题:
自动注入数据过程中,出现的Could not autowire. No beans of "UserMapper' type found.问题。
原因:
idea具有检测功能,接口不能直接创建bean的,需要用动态代理技术来解决。
解决:
1.点击file,选择setting
2.搜索inspections,找到Spring
3.找到Spring子目录下的Springcore
4.在Springcore的子目录下找到code
5.把seyerity选项改成警告