-
500 에러 :: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement개발 여정/Error 2021. 9. 16. 19:27
There was an unexpected error (type=Internal Server Error, status=500).
nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.calmstagram.user.DAO.UserDAO.selectUserByLoginId'. It's likely that neither a Result Type nor a Result Map was specified.
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.calmstagram.user.DAO.UserDAO.selectUserByLoginId'. It's likely that neither a Result Type nor a Result Map was specified.
ㅁ원인
-> Mapper, DAO return값이랑 resultType이 안 맞음.
int로 return해야 하는데
SELECT `id` ,`loginId` ,`password` ,`name` ,`email` ,`createdAt` ,`updatedAt` FROM `user` WHERE `loginId` = #{loginId};
==> 테이블로 리턴
*수정
SELECT count(1) FROM `user` WHERE `loginId` = #{loginId};
'개발 여정 > Error' 카테고리의 다른 글
AJAX 에러 잡기 (0) 2021.09.16 400 에러 :: There was an unexpected error (type=Bad Request, status=400) (0) 2021.09.16 500 에러 : JSP file [/WEB-INF/jsp/user/sign_in.jsp] not found (0) 2021.09.16 tomcat not allowed 에러 (0) 2021.09.16 에러 : unable to load server configurations from 어쩌구 / java.io.FileNotFoundException (0) 2021.09.16