A query was run and no Result Maps were found for the Mapped Statement
2017-09-15 10:45
716 查看
Cause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.shadow.foretaste.UserInfoDao.getPhoneNum'. It's likely that neither a Result Type nor a Result Map was specified.
导致这个错误的原因是:
mapper.xml中没有指定返回值类型
导致这个错误的原因是:
mapper.xml中没有指定返回值类型
<select id="getPhoneNum" > select phone_num from user_info where id = #{id} </select>修改后:
<select id="getPhoneNum" resultType="String"> select phone_num from user_info where id = #{id} </select>
相关文章推荐
- Mybatis报错—— A query was run and no Result Maps were found for the Mapped Statement
- 使用Mybatis时出错:A query was run and no Result Maps were found for the Mapped Statement
- A query was run and no Result Maps were found for the Mapped Statement
- mybatis报错:A query was run and no Result Maps were found for the Mapped Statement
- FAQ(15):A query was run and no Result Maps were found for the Mapped Statement 'com.smbms.dao.UserMa
- A query was run and no Result Maps were found for the Mapped Statement
- A query was run and no Result Maps were found for the Mapped Statement
- A query was run and no Result Maps were found for the Mapped Statement 'com.atguigu.atcrowdfunding.p
- A query was run and no Result Maps were found for the Mapped Statement
- A query was run and no Result Maps were found for the Mapped Statement 'com.dao.CommentDao.reviewtot
- mybatis报错:A query was run and no Result Maps were found for the Mapped Statement
- org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the
- org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the
- A query was run and no Result Maps were found
- mybatis配置文件xxxx.xml中缺失返回类型的后果A query was run and no Result Maps were found
- A query was run and no Result Maps were found
- A query was run and no Result Maps were found
- No default view was found for object type 10201 and query type 2
- No valid signing identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.
- 【ERROR】The active result for the query contain no fields