반응형
local session cache 의 문제로
세션이 생성될 때 로컬캐시를 생성하는데
동일한 쿼리에 대해서는 같은 결과를 반환한다고 함
캐시를 비워줘야하는데 xml에 옵션을 추가하면 됨
<insert id=“insertRow” parameterType=“VO” flushCache=“true”>
</insert>
true에 “” 따옴표 없으면 이런 메세지 발생
open quote is expected for attribute “flushCache” associated with an element type “insert”
반응형
'Java Spring boot' 카테고리의 다른 글
HttpClientErrorException HttpServerErrorException 예외 메세지 처리 (0) | 2025.03.24 |
---|---|
ProcessException / ProcessMessageException (0) | 2025.03.19 |
Mybatis if문 동작 안함 (0) | 2024.12.06 |
Error Mybatis Mapped Statements collection does not contain value for (0) | 2024.12.04 |
java convert timestamp to datetime (0) | 2024.08.15 |