Mybatis mapper resultType HashMap
1. mapper resultType을 HashMap으로 설정
<select id="siteState" resultType="java.util.HashMap">
SELECT * FROM tableName
</select>
2. Controller 설정
HashMap<String, Object> map = admin_service.siteState();
System.out.println(map);
- Console로 확인