步骤1:现象步骤2:项目结构步骤3:新建 resources 目录步骤4:标记为 资源目录 步骤 1 : 现象 有时候 idea 创建的 maven 项目没有resources目录, 但是项目开发又需要,怎么办呢? 请按照一下步骤来手动添加 resources 目录。 步骤 2 : 项目结构 首先选中项目 然后 菜单 -> File -> Project Structure 步骤 3 : 新建 resources 目录 1. 点击左边的 Modules 2. 点击 Sources 3. 右键点击 main 4. 点击 New Folder, 然后输入 resources