import javax.servlet; 导包失败
右键项目名 ----> Properties ----> Java Build Path ----> Libraries ----> ClassPath ---->Add Library ----> Server Runtime ----> Next ----> 选择tomcat ----> Finish
注意不要在ModulePath下选择tomcat,否则错误还在
如果ModulePath和ClassPath下都有tomcat,错误同样也在
The package javax.servlet.http is accessible from more than one module: servlet.api, tomcat.i18n.es,
最新推荐文章于 2021-07-22 11:20:02 发布