본문 바로가기

종이 한장 차이...

검색하기
종이 한장 차이...
프로필사진 graykang

  • 분류 전체보기 (173)
    • centos7 & rocky9 (17)
    • Maven (3)
    • Spring (29)
    • JAVA (9)
    • Other (27)
    • Jenkins (6)
    • javascript (50)
    • mariadb (14)
    • mongodb (1)
    • node.js (6)
    • 자전거길 종주 (1)
    • next.js (2)
    • docker (6)
Guestbook
반응형
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Tags
  • javascript
  • mysql
  • SpringBoot
  • Eclipse
  • MSsql
  • FCM
  • spring3
  • Next.js
  • jquery
  • mybatis
  • ajax
  • pwa
  • rocky9
  • yona
  • PM2
  • git
  • node.js
  • security
  • Tomcat
  • nodejs
  • centos7
  • Maven
  • docker
  • popup
  • jenkins
  • Push
  • config
  • NextJS
  • Java
  • MariaDB
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록resultType (1)

종이 한장 차이...

mybatis+select count() resultType

Spring MVC에서 select count() 시 mybatis설정 및 resultType 참고. - Dao 쿼리 결과를 Object로 받은 후 int로 리턴. public int getUserCount(userInfoVO params) { Object obj = selectOne("selectUserCount"); return obj == null ? 0 : (Integer) obj; } - mybatis에서 resultType을 Integer로 설정. SELECT COUNT(*) FROM USERINFO with(nolock) WHERE user_code = #{userCode};

Spring 2023. 11. 27. 10:43
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바