코딩 관련/MyBatis
[MyBatis] Spring hashmap 이용 Mybatis Vo hashmap 접근
메리짱123
2020. 9. 24. 10:08
반응형
VO 객체 두 개를 한 쿼리로 어떻게 넘겨주나 찾다가 map을 이용하면 된다는 걸 알았음
컨트롤러에서 Hashmap 생성 및 put으로 Vo객체 put
Mybatis
map으로 썼던 경우도 있었는데 hashmap으로 쓰니 되더라. 무슨차이인지는 모르겠다.
parameterType="hashmap"
Vo 파라미터에 대한 접근은 #{Vo이름.파라미터이름}
반응형