반응형
Notice
Recent Posts
Recent Comments
Link
JongTachi의 개발 블로그
[MyBatis] MyBatis 멀티쿼리(여러쿼리)실행 중 에러 본문
728x90
반응형
간단히 요건만 말씀 드리겠습니다.
MyBatis로 foreach(반복문)을 사용중인데 문법은 맞는데 안 된다?
그럼 context.xml에서 url 뒷 부분에 'allowmultiqueries=true'를 추가하세요.
ex) url="jdbc:p6spy:mysql://xx.xxx.xx.xxx:3306/xxxdb?allowMultiQueries=true"
앞에 꼭 '?'를 넣어주시길 바랍니다.
감사합니다.
728x90
반응형
'FrameWork > MyBatis' 카테고리의 다른 글
[MyBatis] Mapped Statements Collection does not contain value for error 원인 (Mybatis 에러) (0) | 2023.11.12 |
---|---|
[MyBatis] MyBatis JDBC Type 종류 (0) | 2023.08.02 |
[MyBatis] MyBatis란? (0) | 2023.07.08 |