解决方法1: file - setting - bulid,Execcution…-java Complier - 最右侧改为你的jdk版本(如:1.8)
如图:
idea运行main出现Exception in thread "main" Process finished with exit code 1如果 还是出现 :Exception in thread “main” Process finished with exit code 1
解决方法2:file - project structure - modules - 右侧Dependencies - 将servlet-api 后面改为compile
如图
idea运行main出现Exception in thread "main" Process finished with exit code 1再次运行ok

相关文章:

  • 2022-12-23
  • 2021-07-24
  • 2021-05-12
  • 2022-12-23
  • 2022-12-23
  • 2020-05-06
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2021-05-28
  • 2022-01-14
  • 2021-10-31
相关资源
相似解决方案