Replies: 2 comments
-
|
"MyBatis에서는 기본키가 자동 생성되는 상황에서 또는 @SelectKey를 사용해 키 값을 조회하고, 이를 자바 객체에 반영합니다. XML 방식 (<selectKey>)keyProperty: 자바 객체의 필드명 어노테이션 방식 (@SelectKey)Mapper 인터페이스에서 사용 MySQL에서의 처리 방식 (자동 키)useGeneratedKeys="true" → 자동 키 사용 설정 |
Beta Was this translation helpful? Give feedback.
-
|
2025-04-25 댓글 작성:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
😎
Beta Was this translation helpful? Give feedback.
All reactions