注册 Tomcat 为系统服务,%TOMCAT_HOME%/bin:
service install tomcat service remove tomcat启动系统服务:
net start tomcat net stop tomcat创建新的服务,conf/server.xml 中,<Host> 下增加:
<Context path="/skin" docBase="D:\template\skin\trunk" crossContext="true"> </Context>增加新的 mime-type,conf/web.xml:
<mime-mapping> <extension>json</extension> <mime-type>application/json</mime-type> </mime-mapping>