当我的控制器类不返回模型和视图对象时,内部资源视图解析器如何工作?它如何映射到视图?
这是控制器类的代码片段:
@RequestMapping(value = "/abc", method = RequestMethod.GET)
public @ResponseBody
List<Map<String, Object>> getabc()
{
return jdbcDa.abc();
}
这是调度程序 servlet 的代码片段:
<!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory -->
<beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<beans:property name="prefix" value="/WEB-INF/views/" />
<beans:property name="suffix" value=".jsp" />
</beans:bean>