asked
Spring Boot Introduction by Example
(18) MyBatis - Using the result value
Written on
·
248
0
<select id="articleCount" resultType="_int">
select count(*) from simple_bbs
</select>
_ int를 _String으로 하니 에러가 나네요.
Answer 1
카운트를 세는 건 결과가 숫자입니다.
그러므로 _int 를 사용하셔야 합니다.