<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">新建了web然后把原来项目的东西复制过来启动报错提示</span><span style="background-color: rgb(255, 255, 255); font-family: Arial, Helvetica, sans-serif;">:</span><span style="color: rgb(255, 0, 0); font-family: Arial, Helvetica, sans-serif;">Web app root system property already set to different value: 'webapp.root' = [E:\AIT\poscoGroup\web\] instead of [E:\AIT\TOMCAT-6.0\webapps\posco\] - Choose unique values for the 'webAppRootKey'</span>
百度后发现错误是由于
只要在web.xml中添加以下的配置:
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>app2.root</param-value>
</context-param>