intelliJ idea新建maven项目没有resource文件夹

如图:intellij idea刚装的时候,创建maven项目是默认没有resource文件夹的

intelliJ idea新建maven项目没有resource文件夹

解决:

1、点击File-->project structure...

intelliJ idea新建maven项目没有resource文件夹

2、Modules-->Sources-->main右键-->New Folder, 输入resources

intelliJ idea新建maven项目没有resource文件夹

intelliJ idea新建maven项目没有resource文件夹

3、选择resources右键,点击Resources(选择文件资源类型),然后Apply,OK即可(添加test也一样)

intelliJ idea新建maven项目没有resource文件夹

 

结果:intelliJ idea新建maven项目没有resource文件夹


--------------------- 
作者:薛定谔饿 
来源:CSDN 
原文:https://blog.csdn.net/qq_37869130/article/details/82380529 
版权声明:本文为博主原创文章,转载请附上博文链接!