在用 IDEA 启动 tomcat 时 发现项目编译报错,如图所示

Information:java: Errors occurred while compiling module 错误

于是安装网上的方法把 JDK 版本都改了一下

Information:java: Errors occurred while compiling module 错误

Information:java: Errors occurred while compiling module 错误

Information:java: Errors occurred while compiling module 错误

改完之后按照道理来说,应该编译通过的,但是我就想,编译不通过肯定跟 IDEA 的配置有关,那么在哪里改跟 Java 编译有关的配置呢?于是我就找到了 File ——》Settings——》 Build Execution Deployment ——》Complier——》 Java Complier 这个地方,就在这里改,当我把下图中的 Module 移除之后,再次编译就通过了。Information:java: Errors occurred while compiling module 错误Information:java: Errors occurred while compiling module 'mall'

记录一下,以防忘记

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-29
  • 2022-12-23
  • 2021-05-06
  • 2021-07-11
  • 2021-04-21
  • 2021-06-26
相关资源
相似解决方案