IDEA运行tomcat时报错:Error running ‘Tomcat 7’: Cannot load C:\Users\22068\.IntelliJIdea2018.2\system\tomcat\Tomcat_7_0_109_JavaWeb\conf\server.xml: Error on line 134: The element type “Host” must be terminated by the matching end-tag “</Host>”.
一、报错提示如下:
二、分析报错内容:
错误位置:项目目录中的server.xml文件,第134行
错误原因:The element type “Host” must be terminated by the matching end-tag “</Host>”.
三、寻找解决方法:
打开提示中的“项目文件中的server.xml”,找到134行
如下图: