Spring Boot application can't resolve the org.springframework.boot package

前端 未结 17 1957
半阙折子戏
半阙折子戏 2020-12-29 19:34

I have set up a spring boot project using the Spring Initializer, I tried several times to create a new project or play with the dependencies, everything seems to be in plac

17条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-29 20:22

    Try this, It might work for you too.

    1. Open command prompt and go to the project folder.
    2. Build project (For Maven, Run mvn clean install)
    3. After successful build,
      • Open your project on any IDE (intellij / eclipse).
      • Restart your IDE incase it is already opened.

    This worked for me on both v1.5 and v2.1

提交回复
热议问题