Reference: The method provided by http://www.lxway.com/206659492.htm:
quote
Method 1: Do not configure root path access
Method 2: Remove the path from the webapp directory, and specify the path in docBase (it can be a path relative to the webapp, or an absolute path) [Recommended]
Method 3: Replace the ROOT directory [Recommended]
Method 4 : Generate ROOT.xml in conf/Catalina/localhost and add the following:
Method 2: Remove the path from the webapp directory, and specify the path in docBase (it can be a path relative to the webapp, or an absolute path) [Recommended]
Method 3: Replace the ROOT directory [Recommended]
Method 4 : Generate ROOT.xml in conf/Catalina/localhost and add the following:
<?xml version='1.0' encoding='utf-8'?> <Context docBase="xxx" path="" reloadable="true" />
According to method 3, after making adjustments, the problem is solved.