首页 > 代码库 > jsp模板配置

jsp模板配置

<%--
Created by IntelliJ IDEA.
User: ${USER}
Date: ${DATE}
Time: ${TIME}
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme
() + "://" + request.getServerName() + ":" + request.getServerPort
() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="http://www.mamicode.com/"/>
<meta charset="utf-8">
<title>#[[$Title$]]#</title>
</head>
<body>
#[[$END$]]#
</body>
</html>

jsp模板配置