web.xml

来自「基于JavaMail开发的E-mail系统」· XML 代码 · 共 38 行

XML
38
字号
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>
	<display-name>ezmail web application</display-name>
	<description>ezmail web application</description>

	<context-param>
		<param-name>smtphost</param-name>
		<param-value>localhost</param-value>
		<description>The name of your SMTP host for your company or ISP</description>
	</context-param>

	<servlet>
		<servlet-name>controller</servlet-name>
		<servlet-class>ezmail.MailControllerServlet</servlet-class>
	</servlet>
	
	<servlet-mapping>
		<servlet-name>controller</servlet-name>
		<url-pattern>/controller</url-pattern>
	</servlet-mapping>
	
	<session-config>
		<session-timeout>30</session-timeout>
	</session-config>

	<welcome-file-list>
		<welcome-file>login_form.html</welcome-file>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>index.html</welcome-file>
		<welcome-file>index.htm</welcome-file>
	</welcome-file-list>

</web-app>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?