1.内置的视图解析器 InternalResourceViewResolver:Controller中的方法 在返回字符串时,可以通过视图解析器来增加 前缀和后缀,让controller中的方法 返回的值更精简。 在spring容器配置中 加入 <bean class="org.