Idea 项目导入和环境配置
1.导入已存在的mavne项目
2.设置jdk
.settings
settings
>Build,Exception,Deployment
>Java Compiler
>Per-modeule bytecode version
2.Project Structure
Project Structure>Project SDK
Project Structure>Project language level
Project Structure>Modules>{your project}>Sources>Language Level
Project Structure>Modules>{your project}>Sources>Dependency>Module SDK
3.第二步错误:idea modules must not contains *
The root already belongs to module ,
直接把main和test删掉
4.Junit报错:org.junit不存在
打开工程结构 File>Project Structure
选择目标工程, 在右边栏中点击 Dependencies, 将unit的scope设置为Compile。