Knowledge map advanced must read: read how large-scale map data efficient storage and retrieval>>>
Problem description
This error report means that the result cannot be mapped. Just map the relationship between Java entity and database table. Be sure to see your own configuration file, your own database
Arrange the treatment ideas to avoid detours
1. First, verify whether the code is written
string SQL = “select count (1) from dual”
jdbcTemplate.queryForMap(sql );
3. But if the database is wrong and the table is not created, I should report table or view not found
4. Re create the table OK
Reflection summary:
1. As the saying goes, doctors can’t treat themselves, so they are easy to get close to the dead end, but if they are sure that the program is OK, they can directly check the configuration file, seek the help of colleagues, and get busy with other things, so they can jump out of the thinking circle
2. Seriously understand the mistakes and narrow the scope
This article is shared in the blog “windward bird” (CSDN).