The package javax.servlet.http is accessible from more than one module: servlet.api, tomcat.i18n.es,
Thepackagejavax.servlet.httpisaccessiblefrommorethanonemodule:servlet.api,tomcat.i18n.es,tomcat.i18n.fr,tomcat.i18n.ja原因是ApacheTomcat的路径创建错了,把下图Modulepath中标红