1.Access denied for user 'root'@'localhost' (using password: YES) 密碼錯誤
2.Unknown database 'db012' 找不到數據庫
3.Table 'db01.user2' doesn't exist 表不存在
4.No qualifying bean of type 'com.itheima.mapper.UserMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} UsperMapper 依賴注入失敗
5.because "this.empMapper" is null 找不到數據
6.Expected one result (or null) to be returned by selectOne(), but found: 2 查詢到的是多條數據,方法返回值卻是個對象
8.No qualifying bean of type 'com.itheima.mapper.StudentMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} Spring 容器中沒有找到類型為 com.itheima.mapper.StudentMapper 的 Bean,無法進行自動注入(@Autowired)
9.Wrong namespace. Expected 'com.itheima.mapper.StudentMapper' but found 'com.itheima.mapper.StudentMapperr'. xml中沒有正確寫Mapper的全類名
10.You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'form student where name='王五'' at line 1 SQL 語句中存在拼寫錯誤