方法一:设置idear的maven运行参数

idea新建maven项目没有src目录的操作方法或者加archetypeCatalog=internal

idea新建maven项目没有src目录的操作方法

 

方法二:在新建maven项目时候设置archetypeCatalog=internal,这种方式每次都需要设置,而且spring boot项目没这个设置,推荐第一种方法。

idea新建maven项目没有src目录的操作方法

相关文章: