新建spring boot項目時提示下面錯誤:
Project at 'C:\worksapce_all\workspace_test\swagger' can't be named 'yunan' because it's located directly under the workspace root. If such a project is renamed, Eclipse would move the container directory. To resolve this problem, move the project out of the workspace root or configure it to have the name 'swagger'. swagger line 0 Gradle Error Marker
原因是settings.gradle裏的rootProject.name名與工程名不一致導致的,改後工程右鍵gradle=>refresh gradle project即可。