1.内置的视图解析器 InternalResourceViewResolver:Controller中的方法 在返回字符串时,可以通过视图解析器来增加 前缀和后缀,让controller中的方法 返回的值更精简。 在spring容器配置中 加入 <bean class="org.
1.使用idea快速搭建Web项目 1-1.创建项目 File--->new Project--->Java Enterprise--->Web Application 1-2.导入 web项目需要的 jar包(tomcat提供) file--->project