close

[Solved] Cannot load configuration class error spring boot

Hello Guys, How are you all? Hope You all Are Fine. Today I am facing the following error Cannot load configuration class error spring boot in Java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Cannot load configuration class error spring boot Error Occurs?

Today I am facing the following error Cannot load configuration class error spring boot in Java.

How To Solve Cannot load configuration class error spring boot Error ?

  1. How To Solve Cannot load configuration class error spring boot Error ?

    To Solve Cannot load configuration class error spring boot Error Either you used an old version of the dependency or application.properties file path wrongly you placed.

  2. Cannot load configuration class error spring boot

    To Solve Cannot load configuration class error spring boot Error Either you used an old version of the dependency or application.properties file path wrongly you placed.

Solution 1

I bet that this dependency

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>

is the one that causes the error. Try to remove it and check again. You can read here more of what that dependency is able to do, and determine if you will invest time in fixing it or just removing it.

Solution 2

Either you used an old version of the dependency or application.properties file path wrongly you placed.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read