package org.springframework.boot does not exist

We Are Going To Discuss About package org.springframework.boot does not exist. So lets Start this Java Article.

package org.springframework.boot does not exist

  1. package org.springframework.boot does not exist

    You need add this dependency
    <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
    then it will work.

  2. package org.springframework.boot does not exist

    You need add this dependency
    <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
    then it will work.

Solution 1

You need add this dependency

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

then it will work.

Original Author Do Nhu Vy Of This Content

Solution 2

You have 0 compile dependencies, only test-compile dependencies defined, because you’ve commented out spring-boot-starter-data-jpa. Spring starter’s pull other dependencies in (including other starters) to create everything needed at compile time. Un-comment the spring-boot-starter-data-jpa dependency, and/or re-evaulate what dependencies you actually want.

Original Author Darren Forsythe Of This Content

Solution 3

1) Close the project
2) Import the project again with auto-import checked

This worked for me. Maybe works for you too.

Original Author Vimukthi Sineth Of This Content

Solution 4

Add the below section outside dependency management and do an update of project. And then the clean install of maven.

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.10.RELEASE</version>
    </parent>

And the below dependency.

<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

If does not fix (Not Likely to happen) then add the other dependencies mentioned here

Original Author kemparaj565 Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment