Home > Mobile >  Springboot not recognized on IntelliJ
Springboot not recognized on IntelliJ

Time:12-29

Even after installing Java and Maven, creating a spring project from springinitializr is facing an issue. The issue is that the project is not recognised as spring project, the annotations, import nothing are working. Can anyone please help out

I tried to redo the process, but things were same. Is any settings.xml needs to be made but I don't see it as necessity.

CodePudding user response:

When opening your project in intellij. you should do so via the import > new Project and choose the pom.xml for the generated project from spring initialize. This way it can resolve dependencies and properly open your project.

  • if the problem persists you can go to your MainApplication.java > right click > run as spring boot project.

If it does not put the configuration on the run shortcut on the up right of the application you can configure it by adding the command : mvn spring-boot:run and add other configurations id desired.

CodePudding user response:

How about right click pom.xml and click add as maven project?

  • Related