原创 關於tomcat 多個配置多個host加載多次,導致initSerlet加載多次

之前公司申請了五個域名,因爲前期只有一個項目,所以老闆要求多個域名對應到一個項目上,於是,我就在tomcat的web.xml上配置了多個host如下: <Host name="www.XXX.com" appBase="webapps"