Etc/Error

[Error_SpringBoot] xml파일 sql구문 오류 해결java.lang.IllegalStateException: Optional int parameter 'seq' is present but cannot be translated into a null value due to being declared as a primitive type...

Cune 2022. 3. 16. 17:09

 

 

 

This application has no explicit mapping for /error, so you are seeing this as a fallback.

<인텔리제이 콘솔창>

java.lang.IllegalStateException: Optional int parameter 'seq' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type.

 

 

sql.xml파일에서 mapper사용해서 아래 sql문을 실행하려고 했다가 오류가 뜬 상황이였습니다.

<select id="getBbsDetail" parameterType="java.lang.Integer" resultType="com.proj.eataewon.dto.BbsDto">
    SELECT *
    FROM EATAEWONBBS
    WHERE SEQ=#{seq}
</select>

유령문자가 포함되어있었는지 지우고 새로쓰니까 해결완료했습니다ㅎㅎ