报错结果
### Cause: org.apache.ibatis.reflection.ReflectionException: Error instantiating interface com.dao.UserDao with invalid types () or values (). Cause: java.lang.NoSuchMethodException: com.dao.UserDao.<init>()
错误原因
<mapper namespace="com.dao.UserDao"><!-- 查询所有,ID名和接口的方法名同名--><select id="findAll" resultType="com.domain.User">select * from user</select></mapper>
resultType类型和数据库表的类型不一致,仔细检查一下resultType是不是我们想要返回的bean类型