首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

freemaker与spring的调整(三)

2013-03-17 
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看看是否可以正常显示


热点排行