目录
根据创建maven项目时的不同选择有quickstart和webApp两种启动方式的jar项目
一、新建Maven项目时选择webApp时的修改方法
1、右键项目名——>build path ——>configure build path
2、选中JRE System Library[j2se-1.5]——>Edit
3、选中Workspace default JRE(jdk.xxx.xxx)——>记着finish——>Apply and Close
4、修改成功后的目录
二、新建项目时选择quickstart方式
1、右键项目名选择java Build Path——>选中xxx/src/main/java——>Add Folder
2、选中main——>Create New Folder
3、输入resources——>Finish——>Ok——>Apply and Close
4、修改后如下图所示
三、针对maven项目名上有红叉
1、右键项目名——>Maven——>update project
2、选中项目——>Ok