인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

gwise's profile image
gwise

asked

Spring Boot Introduction by Example

(18) MyBatis - Using the result value

resultType 을 String 으로 할 수는 없나요?

Written on

·

248

0

<select id="articleCount" resultType="_int">

select count(*) from simple_bbs

</select>

_ int를  _String으로 하니 에러가 나네요.

spring-boot

Answer 1

0

java님의 프로필 이미지
java
Instructor

카운트를 세는 건 결과가 숫자입니다.

그러므로 _int 를 사용하셔야 합니다.

gwise's profile image
gwise

asked

Ask a question