IntelliJ IDEA 没有导入 servlet-api.jar 这个架包,需要你手动导入支持。

解决方法

1、点击左上角的 File,然后点击 Project Structure (快捷键是 Ctrl+Shift+Alt+S)

2、点击 点击Libraries,然后点击绿色的 + 图标,选择 Java

IntelliJ IDEA 无法导入HttpServlet包解决方法

3、选择你的 tomcat 目录下的 lib下的 servlet-api.jar

IntelliJ IDEA 无法导入HttpServlet包解决方法

 

 

然后就 ok 啦!

 

本文地址:https://liuyanzhao.com/5971.html

相关文章:

  • 2021-07-07
  • 2022-12-23
  • 2021-08-30
  • 2021-05-30
  • 2021-10-22
  • 2021-07-24
  • 2022-12-23
  • 2021-11-22
猜你喜欢
  • 2021-08-27
  • 2021-11-05
  • 2022-12-23
  • 2021-11-17
  • 2021-06-30
  • 2022-12-23
相关资源
相似解决方案