I want to display list of categories in my Jsp page using spring mvc @modelAttribute.
In my mapper.xml file is
<select id="selectAllCategories" resultMap="BaseResultMap">
select id, name from categories
</select>
In my Mapper.java class I have method
List<Map<String, String>> selectAllCategories();
I want to have a method like this:
Map<Integer, String>`selectAllCategories();
instead of List<Map<>>, is that possible?