freemaker与spring的调整(三)

freemaker与spring的整合(三)项目是基于之前学习的maven来构建的,包的引入都在pom文件当中项目的文件结构

freemaker与spring的整合(三)

项目是基于之前学习的maven来构建的,包的引入都在pom文件当中

项目的文件结构如图:

freemaker与spring的调整(三)

1.web.xml文件的编写

<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Insert title here</title></head><body>${username }</body></html>

6.启动jetty测试,或者是tomcat测试

访问hello和helloworld看看是否可以正常显示