创建Spring boot项目,发现项目中无src目录
解决方案:
1、点击File -> Setting -> Build, Execution, Deployment -> Build Tools -> Maven -> Runner

2、在VM Options 添加 -Darchetype=Internal

3、点击Apply

一般情况下,在应用完成后刷新项目,src以及以下目录则会创建,如果未创建,可以重新打开项目后再次执行以上3步
解决方案:
1、点击File -> Setting -> Build, Execution, Deployment -> Build Tools -> Maven -> Runner

2、在VM Options 添加 -Darchetype=Internal

3、点击Apply

一般情况下,在应用完成后刷新项目,src以及以下目录则会创建,如果未创建,可以重新打开项目后再次执行以上3步