SSM提取單列數(shù)據(jù)報(bào)錯(cuò)
Caused by: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'org.libM.dao.bookDao.getImage'.? It's likely that neither a Result Type nor a Result Map was specified.
單列數(shù)據(jù)的類型是String ,不是不用配置嗎?我如果配置成實(shí)體類的話,它不就是返回一個(gè)封裝的實(shí)體類?我不需要?jiǎng)e的呀
2018-04-06
需要配置resultType類型的。