Notice
Recent Posts
Recent Comments
Link
12-22 14:48
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- @Setter(onMethod_ = @Autowired) Error
- git오류
- git push
- git
- mysql한글깨짐
- HTTP 상태 415 – 지원되지 않는 Media Type
- 마크다운 링크
- SpringJUnit4ClassRunner
- jdbc연결확인
- java
- java.lang.NoClassDefFoundError:org/springframework/core/annotation/MergedAnnotations
- 스프링
- 마크다운 테이블
- Class<SpringJUnit4ClassRunner> cannot be resolved to a type
- SQL
- 한글깨짐
- rest방식
- lombok.jar
- 오라클연습문제
- jdbc연결테스트코드
- 마크다운 리스트
- ejected-non-fast-forward
- oracle
- 취성패
- 마크다운 기본문법
- spring자바설정
- Oracle join
- 정보처리기사
- 이클립스
- 오라클
Archives
- Today
- Total
study-project
[오류]attempted to return null from a method with a primitive return type (int). 본문
TIL/Spring
[오류]attempted to return null from a method with a primitive return type (int).
귤식빵 2021. 4. 3. 00:28이것도 한참 찾았던 오류이다.
게시판에서 리스트의 페이징 하려고 전체 게시글의 수를 count 해서 리턴하는 sql을 만들다가 생긴 오류
mapper의 resuresultType을 체크해야한다.
count를 할 때 null이 발생하는 경우가 있는데 int는 null을 매핑 할 수 없다고 한다
그래서 integer타입으로 변경하였다.
'TIL > Spring' 카테고리의 다른 글
| [오류] HTTP 상태 415 – 지원되지 않는 Media Type (0) | 2021.03.30 |
|---|---|
| [오류]invalid bound statement (not found) (0) | 2021.03.25 |
| [오류]ERROR: org.mybatis.spring.mapper.MapperFactoryBean - Error while adding the mapper (0) | 2021.03.18 |
| [오류]spring Logger cannot be resolved to a type 해결 (0) | 2021.02.23 |
| [오류]web.xml is missing and <failOnMissingWebXml> is set to true (0) | 2021.02.18 |
Comments