WebAppRootKey is used in the web of java web project. the xml configuration file indicates the unique identifier of the Project. When debugging a Web project in Eclipse, the project path is a temporary path, not in the real path, you can print the attribute value in the form of log4j logs to see where the temporary project path is. You can use System. getProperty ("web. sample. root "); if the web. webAppRootKey is not set in xm and is set as default. Therefore, webAppRootKey is the default "webapp. root ". Solution: If two web applications define the same webAppRootKey or none of them, you need to define a webAppRootKey for each web application. ### App1: <context-param> <param-name> webAppRootKey </param-name> <param-value> app1.root </param-value> </context-param >### app2: <context-param> <param-name> webAppRootKey </param-name> <param-value> app2.root </param-value> </context-param> restart the service, then test it!