close

[Solved] Error creating bean with name: Injection of autowired dependencies failed, could not resolve placeholder

Hello Guys, How are you all? Hope You all Are Fine. Today I am facing the following error Error creating bean with name: Injection of autowired dependencies failed, could not resolve placeholder 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 Error creating bean with name: Injection of autowired dependencies failed, could not resolve placeholder Error Occurs?

Today I am facing the following error Error creating bean with name: Injection of autowired dependencies failed, could not resolve placeholder in Java.

How To Solve Error creating bean with name: Injection of autowired dependencies failed, could not resolve placeholder Error ?

  1. How To Solve Error creating bean with name: Injection of autowired dependencies failed, could not resolve placeholder Error ?

    To Solve Error creating bean with name: Injection of autowired dependencies failed, could not resolve placeholder Error have you tried to rename your 'app.properties' file 'application.properties'? What is the path of this file ? It has to be under 'resources' directory if you don't want to manually configure its path.

  2. Error creating bean with name: Injection of autowired dependencies failed, could not resolve placeholder

    To Solve Error creating bean with name: Injection of autowired dependencies failed, could not resolve placeholder Error have you tried to rename your 'app.properties' file 'application.properties'? What is the path of this file ? It has to be under 'resources' directory if you don't want to manually configure its path.

Solution 1

Resolved it by adding this line in the pom

<filtering>true</filtering>

giving this

<build>
    <resources>     
        <resource>
            <filtering>true</filtering>
            <directory>src/main/resources</directory>
            <includes>                      
                <include>**/*.properties</include>                  
            </includes>
        </resource>            
    </resources>
</build>

Solution 2

have you tried to rename your ‘app.properties’ file ‘application.properties’? What is the path of this file ? It has to be under ‘resources’ directory if you don’t want to manually configure its path.

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