javax.servlet is accessible from more than one module:
import javax.servlet 导包失败
1.右键 ----》 Properties ----> Java Build Path ----> Libraries ----> ClassPath ---->Add Library ----> Server Runtime ----> Next ----> 选择tomcat ----> Finish
第二种情况就是导入失败,已存在,那么只要把Modulepath上的Apache Tomact 拉下来。