The package javax.servlet.http is accessible from more than one module: servlet.api, tomcat.i18n.es,

导包import javax.servlet....       导入不进去,鼠标放到标红位置后显示:The package javax.servlet.http is accessible from more than one module: servlet.api, tomcat.i18n.es, tomcat.i18n.fr, tomcat.i18n.ja

 原因是Apache Tomcat的路径创建错了,

把下图Modulepath中标红的Apache Tomcat,,remove移除掉

The package javax.servlet.http is accessible from more than one module: servlet.api, tomcat.i18n.es,_第1张图片

 在Classpath下重新创建后即可解决

The package javax.servlet.http is accessible from more than one module: servlet.api, tomcat.i18n.es,_第2张图片

 改对路径后,

The package javax.servlet.http is accessible from more than one module: servlet.api, tomcat.i18n.es,_第3张图片

 

 新人在学习的过程中要小心注意呀

你可能感兴趣的:(servlet,tomcat,java)