创建Maven项目开启服务器时IDEA出现的错误 Cannot start compilation: the output path is not specified for module
IDEA错误: Cannot start compilation: the output path is not specified for module "day004". Specify the output path in the Project Structure dialog.
由于创建的是Maven项目,因为没有将配置文件一起上传。
其实这个错误是因为没有设置output的路径,只要修改两个地方的设置就可以了:
第一步:点击跳出来的提示OK
第二步:在Modules设置里勾选”Inherit project compile path”
第三步:设置Project中的”Project compiler output
第四步:运行