Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot resolve symbol SpringApplication

Tags:

spring

maven

Hi I've created a new spring boot project via intelliJ's Spring initializr

Here is my screenshot:

enter image description here

It seems something wrong, I've tried "invalid caches and restart", but it doesn't work.

enter image description here

like image 224
Shurui Yang Avatar asked Mar 19 '18 13:03

Shurui Yang


1 Answers

Please try:

  1. Close IntelliJ

  2. delete .idea/libraries internals

  3. delete spring boot libraries from maven m2 folder. for example - .m2/repository/org/springframework/boot/

You can find .m2 folder under your home directory.

  1. Start IntelliJ

  2. right-clicked pom.xml Maven > Reimport

If above steps do not work -

Try

File -> Invalidate Caches/Restart -> Invalidate And Restart

like image 190
Mahesh_Loya Avatar answered Nov 15 '22 10:11

Mahesh_Loya