Could not autowire. No beans of ‘UserMapper’ type found. 在Settings里面搜索inspections,依次找到Spring->Spring Core->Code->? Autowiring for Bean Class然后将Severity的Error改为Warning 错误 操作