Could not autowire field:
service自动注入错误,排查后发现是ServiceImpl没有implements Service接口
dao注入错误,一种是web.xml中没有使用监听器org.springframework.web.context.ContextLoaderListener
还有一种是dao.xml中resultMap属性和实体类中不一致
Could not find result map java.util.HashMap
org.apache.ibatis.builder.IncompleteElementException: Could not find result map java.util.HashMap] with root cause
java.lang.IllegalArgumentException: Result Maps collection does not contain value for java.util.HashMap
这个错误是dao.xml中select返回类型不对
resultMap="java.util.HashMap"改为 resultType="java.util.HashMap"