Web/스프링

mybatis <string,string> 방식 map 리턴... 못찾음

벨포트조던 2017. 6. 20.
반응형

http://bistros.tistory.com/entry/mybatis-interface-mapper%EA%B8%B0%EB%B0%98%EC%97%90%EC%84%9C-HashMap-%EA%B0%80%EC%A0%B8%EC%98%A4%EA%B8%B0



즉, <Key, Key + 필드> 형태로 나오지 <Key, 1개 필드> 형태는 죽어도 못 뽑아내겠더라... 

출처: http://bistros.tistory.com/entry/mybatis-interface-mapper기반에서-HashMap-가져오기 []

출처: http://bistros.tistory.com/entry/mybatis-interface-mapper기반에서-HashMap-가져오기 []




안된다고 아직도 나옴 외국사이트

http://mybatis-user.963551.n3.nabble.com/Mapping-a-java-util-Map-Field-td4026448.html






http://krespo.net/102

- 이건 ibatis 일 경우 성립한다.



- 스택오버플로우


https://stackoverflow.com/questions/9217334/how-to-get-mapstring-string-as-return-type-using-mybatis-annotations



결과적으로 방법이 없는 듯함. 스택오버플로우에 차선책이 그나마 나을듯

반응형

댓글